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> | |
<head> | |
<meta name="description" content="Walmart Interview Question"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Welcome to Walmart</title> | |
</head> | |
<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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Walmart Interview Question"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Welcome to Walmart</title> | |
</head> | |
<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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="JP Morgan Chase Interview Question"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JP Morgan Chase Intervew Question</title> | |
</head> | |
<body> | |
<h1></h1> |
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> | |
<head> | |
<meta name="description" content="JP Morgan Chase Intervew Question"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JP Morgan Chase Intervew Question</title> | |
</head> | |
<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
( | |
function(v,n) { | |
var doc = this.contentDocument || document; | |
if(!v) v = doc.querySelector("video"); | |
if(!v) return; | |
var fbButtonsDiv = doc.getElementById("fbPhotoPageButtons"); | |
var artistworksDiv = doc.getElementById("playlist0"); |
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
javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.oninput();},1); i.step=.05;t=i.nextSibling;i.oninput=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header")) |
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
function matchesSelector(el, selectorText, ctx) { | |
var all = (ctx||el.ownerDocument).querySelectorAll(selectorText); | |
return indexOf(all, el) != -1; | |
} | |
function findAncestor(el, selectorText, container) { | |
if(el == null || el === container) | |
return null; | |
var parent = el.parentNode; |
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
function Car(make) { | |
this.make = make; | |
} | |
Car.prototype.drive = function() { | |
console.log('driving ' + this.make); | |
}; | |
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
var couple = { m : "Garrett", f : "Tomomi" }; | |
var marriage = function() { console.log(this.f + " is married to " + this.m); }; | |
var status = marriage.bind(couple); | |
status(); | |
"Tomomi is married to Garrett"; |
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
document.addEventListener("mouseover", function(e) { | |
var t=e.target, u; | |
if(!t.href) t = t.parentNode; | |
if(t.href) { | |
if(t.host=="t.co"){ | |
u=t.getAttribute("data-expanded-url"); | |
if(!u && t.search) { | |
u=(u=t.search.match(/\burl=(.+)?&/))&&unescape(u[1]); | |
} else if(!u && t.title.indexOf("http") == 0) { | |
u = t.title; |
NewerOlder