This file contains 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
<!doctype html> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | |
<head> | |
<title></title> | |
<!--[if !mso]><!-- --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!--<![endif]--> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> |
This file contains 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
<mjml> | |
<mj-head> | |
<mj-attributes> | |
<mj-text padding="0" /> | |
<mj-class name="blue" color="blue" /> | |
<mj-class name="big" font-size="20px" /> | |
<mj-all font-family="Helvetica" color="#000" /> | |
</mj-attributes> | |
</mj-head> | |
<mj-body> |
This file contains 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
setInterval(Unfollow, 1000); | |
function Unfollow() { | |
var followingBox = document.querySelectorAll("a[href='/brixtol/following/']"); | |
followingBox[0].click(); | |
setTimeout(function(){ | |
var following = document.querySelectorAll("._aj7mu._r4e4p._95tat._o0442"); | |
for (var i = 0; i < following.length; i++){ | |
following[i].click(); | |
} | |
var close = document.querySelectorAll("._3eajp"); |
This file contains 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
static wait(key) { | |
return Promise | |
.resolve() | |
.then(() => { | |
return localStorage.getItem(key) | |
}); | |
} |
This file contains 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
class Example { | |
fn(){ | |
const root = document.querySelector('#locale') | |
const component = { | |
view(vnode){ | |
return m(".ul.dash", [ | |
m('li.shipping', [ |
This file contains 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
<body> | |
<script src="//unpkg.com/mithril/mithril.js"></script> | |
<script> | |
var root = document.body | |
// your code goes here! | |
</script> | |
</body> |
This file contains 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
import Turbolinks from 'turbolinks'; | |
export default () => { | |
const OldHttpRequest = Turbolinks.HttpRequest; | |
Turbolinks.CachedHttpRequest = class CachedHttpRequest extends Turbolinks.HttpRequest { | |
constructor(_, location, referrer) { | |
super(); | |
super(this, location, referrer); |
This file contains 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
<form action="http://brixtol.us13.list-manage.com/subscribe/post-json?"> | |
<input type="hidden" name="COUNTRY" value="SE" id="mce-COUNTRY"> | |
<input type="text" name="NAME" placeholder="Name" id="mce-NAME"> | |
<input type="email" name="EMAIL" placeholder="Email Address" id="mce-EMAIL"> | |
<button type="submit" name="subscribe" id="mc-embedded-subscribe"> | |
Submit | |
</button> | |
<div id="response"></div> | |
</form> |
This file contains 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
/** | |
* Currency Converter | |
* Used by Locale component for currency exchange rates. | |
*/ | |
/* Modules */ | |
import fx from "money"; | |
import accounting from "accounting"; | |
import symbol from 'currency-symbol-map'; | |
import store from 'store/dist/store.modern'; |
This file contains 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
/* toggleGrid (body) { | |
const toggle = body.querySelector('#filter-grid') | |
const collection = body.querySelector('#collection-products') | |
const products = collection.querySelectorAll('.col-6') | |
toggle.onclick = event => { | |
return { | |
small: () => { | |
products.forEach(el => { |