Skip to content

Instantly share code, notes, and snippets.

@Grassboy
Grassboy / 突破justin 30秒限制的javscript
Created November 20, 2011 12:36
突破justin 30秒限制的javscript
(function(){
window.playerHTML = /*justin flash player 的 html code (<object> tag)*/;
jQuery("body").html(
'<span style="position:absolute; left:0px; top:20px;" id="player1"></span>' +
'<span style="position:absolute; left:0px; top:20px;" id="player2"></span>'
);
var refreshPlayer = function(current) {
var other = (current == "player1" ? "player2": "player1");
jQuery("#" + other).css("z-index", 10);
jQuery("#" + current).css("z-index", 1).html(window.playerHTML);
[十六進制版]
0xE79BAE 0xE5898D 0xE7A1AC 0xE9AB94
0xE69585 0xE99A9C 0xE4BB8D 0xE59CA8
0xE4BFAE 0xE5BEA9 0xE4B8AD 0xEFBC8C
0xE5AE8C 0xE68890 0xE69982 0xE99693
0xE69CAA 0xE79FA5 0xEFBC9B 0xE8AB8B
0xE88090 0xE5BF83 0xE7AD89 0xE58099
0xE38082
#{$C2}item {
$c: (red, blue, green, #AAA, #AAA, #AAA, #AAA, #AAA);
@for $a from 0 to 8{
h3#{$C2}style#{$a} {
color: $c[#{$a}];
}
}
}
#{$C2}item {
$c: (red, blue, green, #AAA, #AAA, #AAA, #AAA, #AAA);
@for $a from 0 to 8{
h3#{$C2}style#{$a} {
color: $c[$a];
}
}
}
#{$C2}item {
$colors: (rgb(27,161,226) rgb(160,80,0) rgb(51,153,51) rgb(162,193,57) rgb(216,0,115) rgb(240,150,9) rgb(230,113,184) rgb(162,0,255) rgb(229,20,0) rgb(0,171,169));
@for $i from 1 to 11 {
$color: nth($colors, $i);
h3#{$C2}style#{$i} {
background-color: #{$color};
}
}
}
Google Chrome 和 Apple Safari 的 UserAgent:
Chrome:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
Safari:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7
http://www.maclaughlinstudios.com/Plurk/Moby/timeline.jpg
http://www.maclaughlinstudios.com/Plurk/Moby/Moby.jpg
http://www.maclaughlinstudios.com/Plurk/Moby/gradient.jpg
loadingIcon: function(module_prefix, options){
var _m = module_prefix;
return $(['<div id="',_m,'loading-notification"><span class="',_m,'loading-notification-inside"> Loading... </span></div>'].join(''));
},
mytooltip($("#my2-menu-qa-cloudpim"),"立即體驗中華電信cloudPIM服務,讓您的行事曆、聯絡人、郵件與個人文件隨處帶著走,更新與同步也能在彈指之間完成。");
jQuery("*").each(function(i, obj){
$(obj).click(function(e){
console.log($(this));
});
});