I hereby claim:
- I am fczbkk on github.
- I am fczbkk (https://keybase.io/fczbkk) on keybase.
- I have a public key ASBd_Qk2_rbwia5PRg3r_55K6bwSNGMGQgCT0l6UD87YYwo
To claim this, I am signing this object:
| var Jquery = {/* kód Jquery */} | |
| var $ = {/* kód inej knižnice */} | |
| (function ($) { | |
| // v tomto bloku mám prístup k metódam Jquery cez $ ... | |
| })(Jquery) | |
| // ... zatiaľ čo mimo blok (v globálnom namespace) $ stále odkazuje na inú knižnicu, Jquery nič neprepísalo |
| /** | |
| * Creates a simple counter that starts at 0 and is raised by 1 on each bump. | |
| * @return {{getCurrentValue: (function(): number), bump: (function(): number)}} | |
| * @example | |
| * const myCounter = createCounter() | |
| * myCounter.getCurrentValue() // 0 | |
| * myCounter.bump() // 1 | |
| * myCounter.bump() // 2 | |
| * myCounter.getCurrentValue() // 2 | |
| */ |
I hereby claim:
To claim this, I am signing this object:
| function customSkipStep (player, topic_id, step_index) { | |
| if (my_element_exists) { | |
| my_player.activateStep(my_topic_id, my_step_index); | |
| return false; | |
| } | |
| return true; | |
| } |
| // take latest step from the list of previous steps and activate it | |
| function activatePreviousStep () { | |
| var steps_history = JSON.parse(localStorage.getItem('inm_steps_history')) || []; | |
| var step_data = steps_history.pop(); | |
| if (step_data) { | |
| inline_manual_player.activateStep(step_data.topic_id, step_data.step_index); | |
| } | |
| localStorage.setItem('inm_steps_history', JSON.stringify(steps_history)); | |
| } |
| // call this function to display previous step | |
| function activatePreviousStep () { | |
| var previous_topic = localStorage.getItem('inm_previous_topic'); | |
| var previous_step = localStorage.getItem('inm_previous_step'); | |
| inline_manual_player.activateStep(previous_topic, previous_step); | |
| } | |
| // remember topic/step whenever step is deactivated | |
| // e.g. when user goes to next step | |
| inline_manual_player.setOptions({ |
| <html> | |
| <head> | |
| <script> | |
| /** | |
| * @typedef {Object} validation_result | |
| * @property {('ok'|'fail')} status | |
| * @property {string} [message] | |
| */ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div> | |
| <p id="myElement">First paragraph.</p> |
| !function(){var e=document.createElement("script"),t=document.getElementsByTagName("script")[0];e.async=1,e.src="https://inlinemanual.com/embed/player.js",e.charset="UTF-8",t.parentNode.insertBefore(e,t)}(); |
| isArray = Array.isArray or (obj) -> Object::toString.call obj is '[object Array]' |