I tried to make almost all the iOS 7 icons with html + css. They aren't pixel perfect and there are bugs, but it was fun :) (made in 1 day... :D)
A Pen by Péter Schmíz on CodePen.
I tried to make almost all the iOS 7 icons with html + css. They aren't pixel perfect and there are bugs, but it was fun :) (made in 1 day... :D)
A Pen by Péter Schmíz on CodePen.
$(document).ready(function() { | |
$('#calendar').fullCalendar({ | |
header: { | |
left: 'prev,next today', | |
center: 'title', | |
right: 'month,basicWeek,basicDay' | |
}, | |
events: 'YOUR-GOOGLE-XML-FEED-URL', | |
eventClick: function(event) { | |
window.open(event.url, 'gcalevent', 'width=900,height=600'); |
module.exports = function(grunt) { | |
// Project Configuration | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
less: { | |
development: { | |
options: { | |
paths: ['public/assets/modules'], | |
compress: true, | |
yuicompress: true, |
; | |
(function() { | |
$.extend({ | |
unparam: function(param) { | |
if (param[0] === '?') param = param.slice(1) | |
var re = {} | |
for (var i = 0, arr = param.split('&'), kv; kv = arr[i]; i++) { | |
kv = kv.split('=') | |
re[kv[0]] = kv[1] | |
} |
var cv = document.getElementById('cv'); | |
var c = cv.getContext('2d'); | |
var txtDiv = document.getElementById('txt'); | |
var fileBtn = document.getElementById("up-button"); | |
var img = new Image(); | |
img.src = 'a.jpg'; | |
img.onload = init; // 图片加载完开始转换 | |
fileBtn.onchange = getImg; | |
// 根据灰度生成相应字符 |