Since IE11 we can just use CSS to prevent elements to fire hover and click event. Here is how to do it:
<a href="page.html" class="off">Link</a>
.off {
pointer-events: none;
cursor: default;
Function.prototype.partial = function() { | |
var fn = this, args = Array.prototype.slice.call(arguments); | |
return function() { | |
var arg = 0; | |
for (var i = 0; i < args.length && arg < arguments.length; i++) { | |
if (args[i] == undefined) { | |
args[i] = arguments[arg++]; | |
} | |
} | |
return fn.apply(this, args); |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; |
app.directive('rmHold', ['$timeout', function($timeout) { | |
return { | |
restrict: 'A', | |
link: function(scope, elem, attrs) { | |
var isActive = false; | |
var currentTimeout = null; | |
var startCoords = { | |
x: null, | |
y: null | |
} |
/** | |
* Provides requestAnimationFrame in a cross browser way. | |
* @author paulirish / http://paulirish.com/ | |
*/ | |
if ( !window.requestAnimationFrame ) { | |
window.requestAnimationFrame = ( function() { | |
return window.webkitRequestAnimationFrame || |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8080; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
var crypto = require('crypto'); | |
var SHARED_SECRET = "sup3rs3cr3t!!"; | |
function signString(string_to_sign, shared_secret) { | |
var hmac = crypto.createHmac('sha512', shared_secret); | |
hmac.write(string_to_sign); | |
hmac.end() | |
return hmac.read(); | |
} |
var crypto = require("crypto"); | |
/** | |
* Get the signature/digest of a supplied input string | |
* @param data [Required] The String to encode | |
* @param awsSecretKey [Required] Secret key shared with Amazon | |
* @param algorithm [Optional] Encryption algorithm, defaults to sha256 | |
* @param encoding [Optional] The output encoding. Default to base64 | |
* @returns Str with encoded digest of the input string | |
*/ | |
function generateHmac (data, awsSecretKey, algorithm, encoding) { |
body { | |
margin: 20px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
input { | |
border: 1px solid #888; | |
font-size: 1.2rem; | |
padding: 0.5rem; | |
} |