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
// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html | |
// | |
// grayscale ex: filter: grayscale(100%); | |
// sepia ex: filter: sepia(100%); | |
// saturate ex: filter: saturate(0%); | |
// hue-rotate ex: filter: hue-rotate(45deg); | |
// invert ex: filter: invert(100%); | |
// brightness ex: filter: brightness(15%); | |
// contrast ex: filter: contrast(200%); | |
// blur ex: filter: blur(2px); |
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
angular.module('myApp.directives', []) | |
.directive('captcha', function () { | |
return { | |
scope: { ngData: '@', ngClick: '@' }, | |
restrict: 'A', | |
link: function (scope, el, attrs) { | |
var canvas = el[0]; | |
var context = canvas.getContext("2d"); | |
var fontsize = 14; |
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
// Import the core angular services. | |
import { Component } from "@angular/core"; | |
// Import the application components and services. | |
import { TextSelectEvent } from "./text-select.directive"; | |
// ----------------------------------------------------------------------------------- // | |
// ----------------------------------------------------------------------------------- // | |
interface SelectionRectangle { |