diff --git a/public/_includes/_head-include.jade b/public/_includes/_head-include.jade index 42ba8c424a..2e46febe96 100644 --- a/public/_includes/_head-include.jade +++ b/public/_includes/_head-include.jade @@ -34,7 +34,7 @@ meta(itemprop="description" content="#{description}") meta(itemprop="image" content="https://angular.io/resources/images/logos/standard/shield-large.png") link(rel="icon" type="image/x-icon" href="/resources/images/icons/favicon.ico") -link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.css") +link(rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css") link(href="https://fonts.googleapis.com/css?family=Roboto:400,300,500,400italic,700" rel='stylesheet' type='text/css') link(href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet") link(rel="stylesheet" href="/resources/css/vendor/icomoon/style.css") diff --git a/public/_includes/_scripts-include.jade b/public/_includes/_scripts-include.jade index b916ec74ef..2449222ad0 100644 --- a/public/_includes/_scripts-include.jade +++ b/public/_includes/_scripts-include.jade @@ -3,13 +3,14 @@ script(src="/resources/js/vendor/prettify.js") script(src="/resources/js/vendor/lang-basic.js") script(src="/resources/js/vendor/lang-dart.js") script(src="/resources/js/vendor/lodash.js") +script(src="/resources/js/vendor/clipboard.min.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js") -script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js") @@ -21,6 +22,7 @@ script(src="/resources/js/directives/api-list.js") script(src="/resources/js/directives/bio.js") script(src="/resources/js/directives/bold.js") script(src="/resources/js/directives/code.js") +script(src="/resources/js/directives/copy.js") script(src="/resources/js/directives/code-tabs.js") script(src="/resources/js/directives/code-pane.js") script(src="/resources/js/directives/code-example.js") diff --git a/public/resources/images/icons/clippy.svg b/public/resources/images/icons/clippy.svg new file mode 100644 index 0000000000..e1b1703590 --- /dev/null +++ b/public/resources/images/icons/clippy.svg @@ -0,0 +1,3 @@ + diff --git a/public/resources/js/directives/code-example.js b/public/resources/js/directives/code-example.js index 05fc80ff7e..98882d2cb2 100644 --- a/public/resources/js/directives/code-example.js +++ b/public/resources/js/directives/code-example.js @@ -13,9 +13,12 @@ angularIO.directive('codeExample', function() { var html = (attrs.escape === "html") ? _.escape(tElement.html()) : tElement.html(); var classes = 'prettyprint ' + attrs.format + ' lang-' + attrs.language + (attrs.showcase === 'true' ? ' is-showcase' : ''); - var template = '
' +
- '' + html + '' +
- '';
+ var template =
+ '' +
+ '' + html + '' +
+ '' +
+ '' +
+ // '' + html + '' +
+ // '' +
+ // '' +
- '' + html + '' +
- '';
-
+ var template =
+ '' +
+ '' + html + '' +
+ '' +
+ '
+ *
+ * SomeBlockOfCode();
+ *
+ *
+ *