Run
Save
Help
Keyboard Shortcuts
CTRL
+
Return
Run fiddly
CTRL
+
S
Save fiddly
CTRL
+
E
New fiddly
CTRL
+
Shift
+
Backspace
Reset Layout
Note:
Press
F11
when cursor is in the editor to toggle full screen editing.
Share link
Share full screen result
Embed on your website
Meta
Add library
jQuery 1.6.3
jQuery 1.7.2
jQuery 1.8.3
jQuery 2.1.0 Latest
Prototype 1.6.1
Prototype 1.7 Latest
YUI 3.10.0
YUI 2.9.0
MooTools 1.5.0
Dojo 1.8.4
Angular Latest
Angular 1.4.0 Stable
RequireJS 2.1.14
React with Add-Ons 0.14.3
ES5 shim 4.4.0
Ember 2.2.0
ThreeJS r73
image domains cdn domain check
Share
Latest edits
1.
1
Various http status codes with there meaning
2023-05-04 06:23:05
2.
1
importModule at front end in javascript
2023-04-05 13:09:04
3.
1
Google roboto font use
2023-03-23 13:11:03
4.
1
Get list of all domains users for images on the webpage
2023-03-01 12:49:03
5.
1
My Browser User agent
2023-02-14 11:31:02
6.
1
vertical align an element with position absolute and flex-box
2022-10-02 10:50:10
7.
1
async await sample code
2022-09-21 06:35:09
8.
2
get all image on page whose size is more than 500kb
2022-09-21 06:32:09
More Posts
HTML
CSS
JS
var domains = {}; document.querySelectorAll('img').forEach(function (img) { var src = img.attributes['src'].value; if(src.indexOf('data') != 0) { let domain = src.split('.com')[0]; //console.log(domain); domain = domain.indexOf('http') == 0 ? domain + '.com' : window.location.origin; if(domains[domain]) { domains[domain].push(src); } else { domains[domain] = [src]; } } }); console.log(domains);