博文

目前显示的是 九月, 2016的博文

ngAnimate of angularJS

A demo, reference https://docs.angularjs.org/api/ngAnimate <!doctype html> <html> <head> <script type="text/javascript" src="https://code.angularjs.org/1.5.8/angular.min.js"></script> <script type="text/javascript" src="https://code.angularjs.org/1.5.8/angular-animate.js"></script>   <style>   /*ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-animate.js*/  .summary{width:160px;height:160px;background:#f60;}  .fade{transition: 1s linear all;}  .fade.ng-enter{opacity:0;} /*transition-delay:0.3s;transition-duration:0s;*/  .fade.ng-enter.ng-enter-active{opacity:1;}/* The finishing CSS styles for the enter animation */  .fade.ng-leave{opacity:1;}  .fade.ng-leave.ng-leave-active{opacity:0;}  </style> </head> <script> (function(angular) { // load the module in your application by adding it as a dependent module: angular.module('test', ['ngAnimate'

spin.js UI Component

http://spin.js.org/#v2.3.2 /** * Copyright (c) 2011-2014 Felix Gnass * Licensed under the MIT license * http://spin.js.org/ * * Example: var opts = { lines: 12 // The number of lines to draw , length: 7 // The length of each line , width: 5 // The line thickness , radius: 10 // The radius of the inner circle , scale: 1.0 // Scales overall size of the spinner , corners: 1 // Roundness (0..1) , color: '#000' // #rgb or #rrggbb , opacity: 1/4 // Opacity of the lines , rotate: 0 // Rotation offset , direction: 1 // 1: clockwise, -1: counterclockwise , speed: 1 // Rounds per second , trail: 100 // Afterglow percentage , fps: 20 // Frames per second when using setTimeout() , zIndex: 2e9 // Use a high z-index by default , className: 'spinner' // CSS cl

QR Code multi-format 1D/2D barcode

图片
1.QR code free zxing library: https://github.com/zxing/zxing How to create QRcode: http://www.swetake.com/qrcode/index-e.html Open Source QR Code Library: https://osdn.jp/projects/qrcode jquery.qrcode.js: https://github.com/jeromeetienne/jquery-qrcode 2.PDF417 no utf-16 3.DM no free https://en.wikipedia.org/wiki/VCard /* utf.js - UTF-8 <=> UTF-16 convertion * * Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp> * Version: 1.0 * LastModified: Dec 25 1999 * This library is free. You can redistribute it and/or modify it. */ /* * Interfaces: * utf8 = utf16to8(utf16); * utf16 = utf16to8(utf8); */ function utf16to8(str) { var out, i, len, c; out = ""; len = str.length; for(i = 0; i < len; i++) { c = str.charCodeAt(i); if ((c >= 0x0001) && (c <= 0x007F)) { out += str.charAt(i); } else if (c > 0x07FF) { out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F)); out += String.fromCharC

Rime Input Method Engine - http://rime.im/ 佛振

佛振 https://gratipay.com/~lotem/ http://rime.im/ https://github.com/rime/librime https://www.v2ex.com/t/140616