This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html> | |
<head> | |
<title>YSlow Notes</title> | |
<style type="text/css"> | |
body { margin: 0; padding: 0; background: #F6F6F6; font-size: 13px; color: #333; font-family: Arial; } | |
h2 { margin: 0; padding-left: 15px; font-size: 18px; border-bottom: 1px dotted #5F5F5F; color: #872929; } | |
p { margin: 0; padding: 5px 15px 30px; } | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tags = {}; | |
$("*").each(function(item) { | |
if (!tags[this.tagName]) { | |
tags[this.tagName] = 0; | |
} | |
tags[this.tagName]++; | |
}); | |
console.dir(tags); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isUrl(s) { | |
var regexp = /((http|https):\/\/)?[A-Za-z0-9\.-]{3,}\.[A-Za-z]{2}/; | |
return s.indexOf(' ') < 0 && regexp.test(s); | |
} | |
isUrl('http://fatihacet.com.tr') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fio = {}; | |
fio.deneme = function(xxx){ | |
alert(xxx); | |
} | |
var oldfunction = fio.deneme; | |
fio.deneme = function(){ |
NewerOlder