This repository was archived by the owner on Aug 15, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +37
-8
lines changed
Expand file tree Collapse file tree 4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 2929< dom-module id ="demo-header ">
3030< template >
3131< header class ="mdl-layout__header mdl-layout--fixed-header is-casting-shadow ">
32+ < script >
33+ if ( location . protocol !== "https:" ) {
34+ location . protocol = "https:" ;
35+ }
36+ </ script >
3237 < div class ="mdl-layout__header-row ">
3338 <!-- Title -->
34- < a class ="main-title " href ="/deeplearnjs/index.html "> < span class ="mdl-layout-title "> deeplearn.js</ span > </ a > < span > [[name]]</ span >
39+ < a class ="main-title " href ="/ "> < span class ="mdl-layout-title "> deeplearn.js</ span > </ a > < span > [[name]]</ span >
3540 <!-- Add spacer, to align navigation to the right -->
3641 < div class ="mdl-layout-spacer "> </ div >
3742 <!-- Navigation. We hide it in small screens. -->
3843 < nav class ="mdl-navigation mdl-layout--large-screen-only ">
3944 < a class ="mdl-navigation__link " target ='_blank ' href ="https://github.com/PAIR-code/deeplearnjs "> Code</ a >
40- < a class ="mdl-navigation__link " href ="/deeplearnjs/ #getting-started "> Getting Started</ a >
41- < a class ="mdl-navigation__link " href ="/deeplearnjs/index.html #demos "> Examples</ a >
42- < a class ="mdl-navigation__link " href ="/deeplearnjs/ docs/tutorials/index.html "> Tutorials</ a >
43- < a class ="mdl-navigation__link " href ="/deeplearnjs/ docs/api/globals.html "> API Reference</ a >
45+ < a class ="mdl-navigation__link " href ="/#getting-started "> Getting Started</ a >
46+ < a class ="mdl-navigation__link " href ="/#demos "> Examples</ a >
47+ < a class ="mdl-navigation__link " href ="/docs/tutorials/index.html "> Tutorials</ a >
48+ < a class ="mdl-navigation__link " href ="/docs/api/globals.html "> API Reference</ a >
4449 </ nav >
4550 </ div >
4651</ header >
Original file line number Diff line number Diff line change 1414# You can create any custom variable you would like, and they will be accessible
1515# in the templates via {{ site.myvariable }}.
1616title : deeplearn.js
17- baseurl : " /deeplearnjs " # the subpath of your site, e.g. /blog
17+ baseurl : " " # the subpath of your site, e.g. /blog
1818
1919# Build settings
2020markdown : kramdown
Original file line number Diff line number Diff line change 11<!-- Header -->
22< header class ="mdl-layout__header mdl-layout--fixed-header ">
3+ < script >
4+ if ( location . protocol !== "https:" ) {
5+ location . protocol = "https:" ;
6+ }
7+ </ script >
38 < div class ="mdl-layout__header-row ">
49 <!-- Title -->
510 < a class ="main-title " href ="{{ "/index.html" | relative_url }}"> < span class ="mdl-layout-title "> deeplearn.js</ span > </ a >
Original file line number Diff line number Diff line change @@ -228,10 +228,29 @@ limitations under the License.
228228 <div class = " mdl-cell mdl-cell--5-col mdl-cell--8-col-tablet mdl-cell-4-col-phone " >
229229 <p class="intro-body mdl-typography--body-1">
230230 <span class="deeplearn-shine">deeplearn.js</span> was originally developed by
231- <a href="https://twitter.com/nsthorat">Nikhil Thorat</a>,
232- <a href="https://twitter.com/dsmilkov">Daniel Smilkov</a> and
231+ <a id="author1"></a>, <a id="author2"></a>, and
233232 <a href="https://twitter.com/c_nich">Charles Nicholson</a>.
234233 </p>
234+ <script>
235+ function daniel(elem) {
236+ elem.href = 'https://twitter.com/dsmilkov';
237+ elem.innerText = 'Daniel Smilkov';
238+ }
239+ function nikhil(elem) {
240+ elem.href = 'https://twitter.com/nsthorat';
241+ elem.innerText = 'Nikhil Thorat';
242+ }
243+
244+ var author1 = document.getElementById('author1');
245+ var author2 = document.getElementById('author2');
246+ if (Math.random() > .5) {
247+ daniel(author1);
248+ nikhil(author2);
249+ } else {
250+ nikhil(author1);
251+ daniel(author2);
252+ }
253+ </script>
235254 </div >
236255 <div class =" mdl-layout-spacer mdl-cell--hide-tablet mdl-cell--hide-phone " ></div >
237256 <div class = " ack mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-cell-4-col-phone " >
You can’t perform that action at this time.
0 commit comments