Download pool/shard003/JavaScript/0019036_home.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019036_home.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0019036_home.js
-
curl -L -o 0019036_home.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019036_home.js
599 Bytes
| /* global define, $ */ | |
| define(['text!tmpl/home.html'], function (homeTmpl) { | |
| 'use strict'; | |
| var navigate; | |
| function init(fn) { | |
| // start getting data | |
| navigate = fn; | |
| } | |
| function render(el) { | |
| // got focus | |
| el.html(homeTmpl); | |
| bindListeners(); | |
| } | |
| function destroy() { | |
| // lost focus | |
| } | |
| function bindListeners() { | |
| $('.za-screens').click(function () { | |
| navigate($('.za-nav-screens')); | |
| }); | |
| $('.za-maps').click(function () { | |
| navigate($('.za-nav-maps')); | |
| }); | |
| } | |
| return { | |
| init: init, | |
| render: render, | |
| destroy: destroy | |
| }; | |
| }); | |