This file contains hidden or 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
| define('mod/bbsync', [ | |
| 'underscore' | |
| , 'mod/ajax' | |
| ], function(_, Ajax) { | |
| function sync(method, model, options) { | |
| var url = model.url, data | |
| url = _.isFunction(url) ? model.url() : url | |
| data = method === 'create' || method === 'update' | |
| ? model.toJSON() : {} |
This file contains hidden or 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
| define('widget/profile', [ | |
| 'jquery' | |
| , 'mod/cookie' | |
| , 'mod/template' | |
| ], function($, cookie, template) { | |
| var body = $('body') | |
| , base = $('#ark-console') | |
| , header = $('.profile-hd') | |
| , dataContainer = $('.profile-bd') | |
| , statusBar = $('.profile-ft') |
This file contains hidden or 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
| define('mod/ajax', [ | |
| 'jquery', | |
| 'mod/cookie' | |
| ], function($, cookie) { | |
| $ = $ || window.$; | |
| cookie = cookie || Ark.cookie; | |
| function ajax() { | |
| var args = arguments, | |
| options = args[args.length - 1] || {}; |
This file contains hidden or 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
| /*jshint node:true*/ | |
| function parse(uaStr) { | |
| var agent = { | |
| platform: {} | |
| , browser: {} | |
| , engine: {} | |
| } | |
| var ua = uaStr |
This file contains hidden or 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
| ;(function() { | |
| var doc = document | |
| , frag = doc.createDocumentFragment() | |
| , ids = [ | |
| { id: 'tifafa', name: 'tifa' } | |
| , { id: 'godlikejay', name: 'Jay' } | |
| , { id: 'mockee', name: 'mockee' } | |
| ].sort(function() { | |
| return Math.random() > 0.5 | |
| }) |
This file contains hidden or 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
| /*global _:true, Backbone:true*/ | |
| define('backbone', ['backbone-src'], function() { | |
| if (!('ontouchstart' in window)) { return Backbone } | |
| require('mod/touch', function(){}) | |
| var delegateEventSplitter = /^(\S+)\s*(.*)$/ | |
| function getValue(object, prop) { | |
| if (!(object && object[prop])) { return null } | |
| return _.isFunction(object[prop]) ? object[prop]() : object[prop] |
This file contains hidden or 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
| /*jshint eqnull:true*/ | |
| define('jquery', ['jquery-src'], function() { | |
| if (!('ontouchstart' in window)) { return jQuery } | |
| require('mod/touch', function(){}) | |
| function returnFalse() { | |
| return false | |
| } | |
| jQuery.fn.extend({ |
This file contains hidden or 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
| define(function() { | |
| var bodyTag | |
| , win = window | |
| , doc = document | |
| , docElement = doc.documentElement | |
| function hideAddressBar(isPad) { | |
| if (screen.width > 980 || screen.height > 980) { return } | |
| if (win.navigator.standalone === true) { return } |
This file contains hidden or 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 "arkui/mixins" | |
| $bgColor = #d8d6ce | |
| $pollyfill = #855b5b | |
| #reading-progress | |
| z-index: 1000 | |
| position: fixed | |
| display: none |
This file contains hidden or 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
| #!/bin/sh | |
| RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom | |
| RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist | |
| RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom | |
| RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist | |
| RECEIPT_FILE3=/var/db/receipts/com.apple.pkg.llvm-gcc4.2.bom | |
| RECEIPT_PLIST3=/var/db/receipts/com.apple.pkg.llvm-gcc4.2.plist | |
| RECEIPT_FILE4=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom | |
| RECEIPT_PLIST4=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist |