Skip to content

Instantly share code, notes, and snippets.

View css_back_class.html
<div style="color:##38121E">Hello Wold</div>
<div style="color:##38121E; font-size:20px">Hello Wold</div>
<div style="color:##38121E; font-size:20px; font-wight:Bold">Hello Wold</div>
<div style="border-width: 1px; border-style: dotted; border-color: black">Hello Wold</div>
<div style="border: 1px dotted black">Hello Wold</div>
1. --------------------------------------------------------
<style type="text/css">
div {font-size: 20px}
#red {color: #450515}
View js_class.js
<script type="text/javascript">
alert('hello world')
</script>
<script type="text/javascript">
a = "hello World"
alert(a)
</script>
<script type="text/javascript">
View list.html
<style>
ul {
padding: 0px;
}
li:first-child {
border-left: 1px solid red;
}
li {
list-style: none;
View js_class1.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<style type="text/css" media="screen">
.box {background-color: red; width: 80px; height: 80px; display: inline-block;}
</style>
</head>
View class_jQuery1.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
function() {
View class_jquery2.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
function() {
View js_function_class.html
<script type="text/javascript">
// function CookRice(){
// alert(“hello”)
// }
// ---------------------------
// Var CookRice = function() {
// alert(“hello”)
// }
// ---------------------------
// Var CookRice = function() {
@cflove
cflove / gist:9437752
Created March 8, 2014 19:42
class_jQuery_image_gal.html
View gist:9437752
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
centerMe = function () {
var pageW = $(window).width()
View class_Canvas.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Canvas</title>
</head>
<body>
<canvas id="MyDrawing" width="600" height="400" style="border: 1px solid black;"></canvas>
<script type="text/javascript">
View class_form.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<script src="//netdna.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<script type="text/javascript">