Skip to content

Instantly share code, notes, and snippets.

View QETHAN's full-sized avatar
🎯
Focusing

QETHAN QETHAN

🎯
Focusing
View GitHub Profile
@QETHAN
QETHAN / remove link outline
Created March 2, 2014 07:04
WebView remove link border outline
@QETHAN
QETHAN / dabblet.css
Created February 17, 2014 07:09 — forked from LeaVerou/dabblet.css
Typing animation with pure CSS.
/**
* Typing animation with pure CSS.
* Works best in browsers supporting the ch unit.
*/
@keyframes typing { from { width: 0; } }
@keyframes blink-caret { 50% { border-color: transparent; } }
h1 {
font: bold 200% Consolas, Monaco, monospace;
@QETHAN
QETHAN / onkeypress
Created February 13, 2014 07:39
onkeypress
<script>
var search = document.getElementById('search');
var searchBtn = document.getElementById('searchBtn');
search.addEventListener('keypress', function(e){
var e = e||event;
var key = e.which || e.keyCode;
if(key == 13){
console.log(2323);
}
});
@QETHAN
QETHAN / actual scroll top
Created February 5, 2014 15:05
actual scroll top
var note = document.getElementsByName('Note')[0];
var screenPosition = note.getBoundingClientRect();
function position( document.getElementsByName('Note')[0]) {
var left = 0,
top = 0;
do {
left += elem.offsetLeft-elem.scrollLeft;
@QETHAN
QETHAN / ajax封装
Created October 26, 2013 15:13
同步 异步
//recvType 有三个值HTML、XML和JSON , 默认为HTML,传值时不区分大小写
//bool 是一个boolean类型的值,true表示异步传输方式,false表示同步传输方式,默认为true
function Ajax(recvType, bool) {
var aj = new Object();
aj.targetUrl = ''; //请求的地址 可以是PHP也可以XML文件
aj.sendString = ''; //请求服务器传递的字符串 ? & 格式 url
if(typeof(bool)=="undefined")
aj.async=true;
else
;(function ($, window, undefined) {
'use strict'; //jshint :)
//arrow animation
$("#info-activator").on({
click : function(e) {
e.preventDefault();
input{
border: 1px solid red;
}
.btn-file {
position: relative;
margin-left: 100px;
overflow: hidden;
}
.btn {
display: inline-block;
function questionCreator(spec, my) {
var that = {};
my = my || {};
my.label = spec.label;
my.renderInput = function() {
throw "not implemented";
};
function Event(name) {
var handlers = [];
this.getName = function () {
return name;
};
this.addHandler = function (handler) {
handlers.push(handler);
};
@pimaxx There is a problem. You have not expanded the zip into the ~/Library/Application\ Support/TideSDK as the instructions indicate. You should be see a structure like the following:
├── modules
│ └── osx
│ ├── app
│ ├── codec
│ ├── database
│ ├── filesystem
│ ├── media
│ ├── monkey