html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html>
<head>
<title>
jQuery
</title>
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
</head>
<body>
<script>
$(function () {
$("body").mouseover(function () {
$("body").css("background-color", "#2196F3");
});
$("body").mouseout(function () {
$("body").css("background-color", "#87CEEB");
});
$("body").click(function () {
$("body").css("background-color", "black");
});
$("body").dblclick(function () {
$("body").css("background-color", "orange");
});
$("body").css("transition-duration", "1s");
$("body").css("height", "100%");
$("body").css("width", "100%");
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
/*
Everything jQuery in this program and nothing else
BY SIDDHARTH SARAF DON't STEAL
*/
Enter to Rename, Shift+Enter to Preview
js
js
1
2
alert("If you are on desktop, everything will work fine \n But if you are on smartphone, only click and dblclick events will work");
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run