Skip to content

Instantly share code, notes, and snippets.

Avatar

Mary Somerville marysomerville

  • Reykjavik
View GitHub Profile
@marysomerville
marysomerville / 0_reuse_code.js
Created Feb 17, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@marysomerville
marysomerville / Web Design Programs
Last active Jul 16, 2018
A list of design programs for mac and windows.
View Web Design Programs
Mac
Sketch - https://www.sketchapp.com/
Windows
Lunacy - https://icons8.com/lunacy
Gravit Designer - https://www.designer.io/#hero
Figma - https://www.figma.com/
@marysomerville
marysomerville / app.js
Last active Jan 6, 2019
Javascript form
View app.js
// @codekit-prepend "../../bower_components/url-search-params/build/url-search-params.js";
// @codekit-prepend "../../bower_components/axios/dist/axios.js";
// @codekit-prepend "../../bower_components/velocity/velocity.min.js";
/* ----------
Variables
-----------*/
var introTitle = document.getElementById('js-title'),
nameForm = document.getElementById('name-form'),
View script.js
introVid = '/assets/media/intro-video-sequence.mp4';
lieVid = '/assets/media/lygamaelir.mp4';
handVid = '/assets/media/handloop.mp4';
var reqIntro = new XMLHttpRequest();
reqIntro.open('GET', introVid, true);
reqIntro.responseType = 'blob';
reqIntro.onload = function(e) {
if (this.status === 200) {