WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8b70bc0

Browse files
committed
chore(lint): linting JS
1 parent 4010d0a commit 8b70bc0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

css-layout.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// tiny CSS layout "debugger"
22
// from https://gist.github.com/addyosmani/fd3999ea7fce242756b1
33
// puts random color border around each element
4-
[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
4+
/* global $$ */
5+
/* jshint -W016 */
6+
[].forEach.call($$('*'),
7+
function (a) {
8+
a.style.outline = '1px solid #' + (~~(Math.random() * (1 << 24))).toString(16);
9+
});

harlem-shake-xss.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)