Make sure you're logged in at https://in.yourparty.uk then navigate to your country or region:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | |
| 00:00:02,930 --> 00:00:05,416 | |
| We have to move beyond the idea of just | |
| 2 | |
| 00:00:05,416 --> 00:00:07,350 | |
| having kind of hope that something will happen. | |
| 3 | |
| 00:00:07,350 --> 00:00:09,283 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const css = (...x) => | |
| m(`style`, `\n@scope to (slot) {${ String.raw(...x) }}\n`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Mithril dev harness backend | |
| // | |
| // Exports a `registry` of components, active `instances`, an | |
| // `activeTree` with the hierarchicy of components in vdom structure, | |
| // and a `wrapper` to be used instead of `m` hyperscript. | |
| // | |
| // Intended for use as a backend to a GUI for visual inspection & | |
| // debugging of the Mithril virtual DOM tree. | |
| // Each component called by Mithril needs to be wrapped in a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Return a unique selector for a specific element. */ | |
| const getUniqueSelector = (/** @type {Element} */ element) => { | |
| /** Unique selector for this element */ | |
| let selector = '' | |
| /** @type {Element} */ | |
| let parent | |
| while (parent = element.parentElement) { | |
| /** @type {number} Nth-child order of the element. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function BeforeUnload(){ | |
| const route. = m.route.set | |
| const handler = e => { | |
| if( | |
| e.target.href | |
| && | |
| e.target != '_blank' | |
| && | |
| !confirm(message) | |
| ){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Disable mobile zoom on focus | |
| { | |
| // Customise the selector value as necessary | |
| const selector = '[data-nozoom]' | |
| const $viewport = | |
| document.querySelector('meta[name=viewport]') | |
| ?? | |
| Object.assign(document.createElement('meta'), {name: 'viewport'}) | |
| const $scale0 = Object.assign($viewport.cloneNode(), {content: 'user-scalable=0'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @property --columns { | |
| syntax: '<integer>'; | |
| inherits: false; | |
| initial-value: 1; | |
| } | |
| table { | |
| display: grid; | |
| grid-template-columns: repeat(var(--columns, 1), auto); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --separator-text : ' | '; | |
| --separator-size : .45em; | |
| } | |
| .inline-separators { | |
| &:dir(ltr) { | |
| clip-path : inset(-100vh -100vw -100vh 0); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const object = {a: 1, b: 2} | |
| const array = [3,4] | |
| // Value expression | |
| const foo = {...object, c: 3} // == {a: 1, b: 2, c: 3} | |
| const bar = [...array, 5, 6] // == [3, 4, 5, 6] | |
| // Destructuring assignment | |
| { | |
| const {a, ...rest} = foo // a == {a: 1}; rest == {b: 2, c: 3} |
NewerOlder