%windir%\system32\inetsrv\appcmd list site “MyWebsite” /config /xml > c:\mywebsite.xml
#And to import it:
%windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml
(function ($) { | |
$.fn.longClick = function (callback, timeout) { | |
// bind to element's mousedown event to track the longclick's beginning | |
$(this).mousedown(function (event) { | |
// save the initial event object | |
var initialEvent = event; | |
// set the delay after which the callback will be called | |
var timer = window.setTimeout(function () { callback(initialEvent); }, timeout); | |
// bind to global mouseup event for clearance | |
$(document).mouseup(function () { |
var colors; | |
$(document).ready(function(){ | |
loadColors(); | |
$('#empf').autocomplete(colors); | |
} | |
function loadColors(){ | |
colors = new Array(getNumColor()); | |
//in a loop save the colors to array using colors[i] = ... |
cordova platform update ios | |
sudo npm update -g cordova | |
sudo npm update -g plugman | |
sudo npm install -g cordova | |
sudo npm install -g cordova | |
sudo npm install -g plugman | |
sudo npm install -g ios-deploy | |
sudo npm install -g ios-sim |
var status = document.getElementsByName("status")[0]; // or whatever | |
var jsonArr = []; | |
for (var i = 0; i < status.options.length; i++) { | |
jsonArr.push({ | |
id: status.options[i].text, | |
optionValue: status.options[i].value | |
}); | |
} |
<!DOCTYPE HTML> | |
<head id="" data-template-set="html5-reset"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, maximum-scale=1.0" /> | |
</head> | |
<body> | |
</body> | |
</html> |
ALTER TABLE {TABLENAME} | |
ADD {COLUMNNAME} {TYPE} {NULL|NOT NULL} | |
CONSTRAINT {CONSTRAINT_NAME} DEFAULT {DEFAULT_VALUE} |
cordova plugins add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git | |
cordova plugins add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git | |
cordova plugins add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git | |
cordova plugins add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git | |
cordova plugins add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git |