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
$('#file').val(''); | |
$("#file").change(function () { | |
readFile($(this), this); | |
}); | |
$('.js-action').click(function (e) { | |
e.preventDefault(); | |
var $this = $(this); | |
var $parent = $this.parent().parent(); |
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
drush cc all |
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
$('[data-toggle="modal"]').click(function () { | |
var url = $(this).attr('href'); | |
$.get(url, function (data) { | |
var modal = $('<div id="clue-modal" class="modal fade" tabindex="-1" role="dialog"><div class="modal-dialog"><div class="modal-content">' + data + '</div></div></div>').modal(); | |
modal.on("hidden.bs.modal", function () { | |
$(this).remove(); | |
}); | |
setTimeout(function(){ | |
modal.modal('hide'); | |
},5000); |
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
'use strict' | |
const Config = use('Config') | |
var twitterAPI = require('node-twitter-api') | |
const promisify = require("es6-promisify") | |
const twitter = new twitterAPI({ | |
consumerKey: Config.get('auth.twitterAuth.consumerKey'), | |
consumerSecret: Config.get('auth.twitterAuth.consumerSecret'), |
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
'use strict' | |
const Config = use('Config') | |
var twitterAPI = require('node-twitter-api') | |
const promisify = require("es6-promisify") | |
const twitter = new twitterAPI({ | |
consumerKey: Config.get('auth.twitterAuth.consumerKey'), | |
consumerSecret: Config.get('auth.twitterAuth.consumerSecret'), |
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 w = 300; | |
var h = 250; | |
var padding = 5; | |
var dataset = [5, 10, 15, 20, 25, | |
11, 45, 21, 3, 21]; | |
var svg = d3.select("body").append("svg") | |
.attr("width", w) | |
.attr("height", h); | |
function colorPicker(v) { |
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 w = 350; | |
var h = 200; | |
var monthlySales = [ | |
{ 'month': 10, 'sales': 12 }, | |
{ 'month': 20, 'sales': 8 }, | |
{ 'month': 30, 'sales': 85 }, | |
{ 'month': 40, 'sales': 10 }, | |
{ 'month': 50, 'sales': 23 }, | |
{ 'month': 60, 'sales': 85 }, |
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
[ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Åland Islands", | |
"code": "AX" | |
}, | |
{ |
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
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="description" content="A site that demonstrates the Payment Request API."> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | |
<title>Payment Request API | Demo & Info</title> | |
<link rel="manifest" href="/manifest.json"> |
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
// Will hold previously focused element | |
var focusedElementBeforeModal; | |
// Find the modal and its overlay | |
var modal = document.querySelector('.modal'); | |
var modalOverlay = document.querySelector('.modal-overlay'); | |
var modalToggle = document.querySelector('.modal-toggle'); | |
modalToggle.addEventListener('click', openModal); |
OlderNewer