Forked from Jamie Jefferson's Pen Sortable list with GSAP Draggable.
A Pen by Captain Anonymous on CodePen.
| /*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/ | |
| /*At least requires the meta viewport tag with content 'width=device-width'*/ | |
| @media only screen and (max-width: 1080px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Windows Surface Pro*/ | |
| } | |
| @media only screen and (max-width: 800px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Acer Iconia Tab A100 |
Forked from Jamie Jefferson's Pen Sortable list with GSAP Draggable.
A Pen by Captain Anonymous on CodePen.
| license: gpl-3.0 |
| license: gpl-3.0 |
| /* | |
| I've compiled a list of angular directives according to their priorities (from most priority to lesser priority). | |
| Also, terminal property is included for each directive that asserts it | |
| */ | |
| ng-switch 1200 | |
| ng-repeat 1000 terminal | |
| ng-if 600 terminal | |
| ng-controller 500 | |
| ng-init 450 |
| //Define a function scope, variables used inside it will NOT be globally visible. | |
| (function () { | |
| var | |
| //the HTTP headers to be used by all requests | |
| httpHeaders, | |
| //the message to be shown to the user | |
| message, |
| app.directive('faFastScroll', ['$parse', function ($parse) { | |
| var Interval = function(min, max) { | |
| this.min = min || 0; | |
| this.max = max || 0; | |
| }; | |
| Interval.prototype.clip = function(min, max) { | |
| if(this.max <= min || this.min >= max) { | |
| this.min = this.max = 0; |
| angular.module('d3', []) | |
| .factory('d3Service', ['$document', '$window', '$q', '$rootScope', | |
| function($document, $window, $q, $rootScope) { | |
| var d = $q.defer(), | |
| d3service = { | |
| d3: function() { return d.promise; } | |
| }; | |
| function onScriptLoad() { | |
| // Load client in the browser | |
| $rootScope.$apply(function() { d.resolve($window.d3); }); |
| (function(global){ | |
| /* Initialization meta module. Pelle Bjerkestrand. WTFPL. */ | |
| 'use strict'; | |
| var app = global.app || {}; | |
| function init(){ | |
| for (var key in app) { | |
| if (app.hasOwnProperty(key)) { | |
| var module = app[key]; |
<!DOCTYPE html>
<html>