|
19 | 19 | <script src="{{ url_for('static',filename='js/leaderboard.js') }}"></script> |
20 | 20 |
|
21 | 21 | <script type="text/javascript" src="//gyrocode.github.io/jquery-datatables-pageLoadMore/1.0.1/js/dataTables.pageLoadMore.min.js"></script> |
| 22 | + |
22 | 23 | </head> |
23 | 24 |
|
| 25 | + |
| 26 | + |
24 | 27 | <BODY BGCOLOR="FFFFFF"> |
25 | 28 |
|
26 | 29 | <!-- HTML generated using hilite.me --> |
|
29 | 32 | <div class="filterGroup fontBigger" id="filters"> |
30 | 33 | </div> |
31 | 34 |
|
32 | | -<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre style="margin: 0; line-height: 125%"><span style="color: #008800; font-weight: bold">import</span> <span style="color: #0e84b5; font-weight: bold">tensorflow</span> <span style="color: #008800; font-weight: bold">as</span> <span style="color: #0e84b5; font-weight: bold">tf</span> |
| 35 | +<button onclick="myFunction()" class="button">Click Here to go </button> |
| 36 | + |
| 37 | +<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"> |
| 38 | + <pre style="margin: 0; line-height: 125%"> |
| 39 | + |
| 40 | +<span style="color: #008800; font-weight: bold">import</span> <span style="color: #0e84b5; font-weight: bold">tensorflow</span> <span style="color: #008800; font-weight: bold">as</span> <span style="color: #0e84b5; font-weight: bold">tf</span> |
33 | 41 |
|
34 | 42 | <span style="color: #008800; font-weight: bold">def</span> <span style="color: #0066BB; font-weight: bold">main</span>(): |
35 | 43 |
|
|
96 | 104 | model<span style="color: #333333">.</span>save(<span style="background-color: #fff0f0">'model.h5'</span>) |
97 | 105 |
|
98 | 106 | new_model <span style="color: #333333">=</span> keras<span style="color: #333333">.</span>models<span style="color: #333333">.</span>load_model(<span style="background-color: #fff0f0">'model.h5'</span>) |
99 | | - |
100 | | - new_model<span style="color: #333333">.</span>evaluate(test_loader) |
| 107 | + |
| 108 | + <span class="codeblock" id="hehe"> |
| 109 | + new_model<span style="color: #333333">.</span>evaluate(test_loader)</span> |
101 | 110 |
|
102 | 111 | <span style="color: #008800; font-weight: bold">if</span> __name__ <span style="color: #333333">==</span> <span style="background-color: #fff0f0">'__main__'</span>: |
103 | 112 | main() |
104 | | -</pre></div> |
| 113 | +</pre> |
| 114 | +</div> |
105 | 115 |
|
| 116 | +<div id="search_cont"> |
| 117 | + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has |
| 118 | + survived not only five centuries |
| 119 | +</div> |
106 | 120 |
|
| 121 | +<div id="last"> There is hope </div> |
107 | 122 |
|
108 | 123 | <script> |
109 | 124 |
|
| 125 | + |
| 126 | + function scrollTo(hash) { |
| 127 | + location.hash = "#" + hash; |
| 128 | + console.log(location.hash); |
| 129 | + } |
| 130 | + |
| 131 | + function jump(h){ |
| 132 | + var url = location.href; //Save down the URL without hash. |
| 133 | + location.href = "#"+h; //Go to the target element. |
| 134 | + history.replaceState(null,null,url); //Don't like hashes. Changing it back. |
| 135 | + } |
| 136 | + |
110 | 137 | function create_filter(name, items) { |
111 | 138 | // document.getElementById("filters").innerHTML+= |
112 | 139 | content = '<div class="filter">'; |
|
142 | 169 | return selected; |
143 | 170 | } |
144 | 171 |
|
145 | | - var def_filters = {"Name": ['datapipeline', "rundata", "singleGPU"]} |
| 172 | + var def_filters = {"Name": ['datapipeline', "rundata", "singleGPU", "last"]} |
146 | 173 |
|
147 | 174 |
|
148 | 175 | for (var key in def_filters) { |
149 | 176 | if (def_filters.hasOwnProperty(key)) { |
150 | | - console.log("hsi") |
151 | 177 | create_filter(key, def_filters[key]) |
152 | 178 | } |
153 | 179 | } |
154 | 180 |
|
155 | 181 | var color_default = 'rgb(255,255,255)' |
156 | 182 | var color_selected = 'rgb(254,200,200)' |
157 | 183 |
|
| 184 | + |
| 185 | + |
158 | 186 | $("input.table_radio:radio").change(function(){ |
159 | 187 |
|
160 | 188 | var spans = document.getElementsByClassName('codeblock'); |
|
163 | 191 | span.style.background = color_default; |
164 | 192 | } |
165 | 193 |
|
166 | | - console.log(get_filters()['Name']) |
167 | 194 | var span = document.getElementById(get_filters()['Name']); |
168 | | - span.style.background = color_selected; |
| 195 | + span.style.background = color_selected; |
| 196 | + |
| 197 | + var target = "#" + get_filters()['Name'] |
| 198 | + $('html, body').animate({scrollTop:$(target).position().top}, 'slow'); |
169 | 199 | }) |
170 | 200 |
|
171 | 201 | </script> |
|
0 commit comments