Skip to content

Instantly share code, notes, and snippets.

View ghostzhang's full-sized avatar

GhostZhang ghostzhang

View GitHub Profile
@ghostzhang
ghostzhang / coderun.json
Last active August 22, 2023 10:27
test
{"config":{"codeTheme":"OneDarkPro","pageThemeSyncCodeTheme":true,"openAlmightyConsole":false,"autoRun":false,"layout":"default","keepPreviousLogs":true,"codeFontSize":16},"title":"test","code":{"HTML":{"language":"html","content":"<div id=\"app\">\n{{ message }}\n</div>","resources":[]},"CSS":{"language":"css","content":"body{background-color: rgb(36, 94, 145);}","resources":[]},"JS":{"language":"javascript","content":"var app = new Vue({\nel: '#app',\ndata: {\n message: 'Hello Vue!'\n}\n})","resources":[{"name":"Vue 2","url":"./lib/vue@2.7.8.js"}]},"VUE":{"language":"vue2","content":"","resources":[]}}}
@ghostzhang
ghostzhang / dabblet.css
Last active August 29, 2015 14:19
The first commented line is your dabblet’s title
p:nth-child(-n+3)
{
background:#ff0000;
}
var xmlHttp;
//创建对象
function createXMLHttpRequest(){
if (window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if (window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest("Msxml2.XMLHTTP.3.0");
}
}