Execute
Save
Share
Share link
share
share
share
Team
Public Teams
Comments
0
Created By:
Guest
Title:
Title
Description
Edit
Copy Link
Login
Email *
Password *
Login
OR
Create Account
Screen Name *
Email *
Password *
Retype Password *
Team Access Code
Register
Public CodeBins
HELP
--Select Theme--
Ambiance
Blackboard
Cobalt
Eclipse
Elegant
Erlang-Dark
Lesser-Dark
Monokai
Neat
Night
Rubyblue
Vibrant-Ink
Xq-Dark
New CodeBin
CodeBins Versions
07/11/2012- V.6
07/11/2012- V.5
07/11/2012- V.4
07/11/2012- V.3
07/11/2012- V.2
07/11/2012- V.1
Compare Versions
Recent CodeBins
View All CodeBins
$(window).load(function(){ $("#i").attr({"src":"http://intranet.pentalog.fr/inp/"}); $("#myCanvas").css({"height":$("#i").attr("height")}); var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); $("#but").click(function(){ if($("#myCanvas").is(":hidden")) { $("#myCanvas").show(); var i=0; ctx.fillStyle="rgba(255,255,255,0.1)"; var interval1=setInterval(function(){ ctx.clearRect(i-1,i-1,150,75); ctx.fillRect(i,i,100,75); i=i+1; if(i>53) clearInterval(interval1); },50); } else{ $("#myCanvas").hide(); ctx.clearRect(0,0,1000,1000); } }); });
Bottom of Page
In Head
On Load
On Ready
Setting
Validate
Copy
Format
#mycanvas{ position:absolute; top:0; left:0; bottom:0; background-color:rgba(0,0,0,0.1); display:none; } #but{ position:absolute; bottom:40; right:0; }
Setting
Validate
Copy
Format
<iframe id="i" height="100%" width="100%"></iframe> <canvas id="myCanvas"></canvas> <button id="but">apasa</button>
No Doc Type
HTML5
HTML 4.01 Transitional
HTML 4.01 Strict
HTML 4.01 Frameset
XHTML 1.1
XHTML 1.0 Transitional
XHTML 1.0 Strict
XHTML 1.0 Frameset
Copy
Format
Download
×
Code Description
×
Difference of Versions
HTML
CSS
JS
×
JS Error
×
CSS Error
Errors
Warnings
×
JavaScript Setting
JS Libraries:
Chrome Frame 1.0.3
Dojo 1.8.0
Dojo 1.7.3
Dojo 1.7.2
Ext Core 3.1.0
jQuery 1.8.0
jQuery 1.7.2
jQuery 1.6.0
jQuery 1.5.0
jQuery 1.4.4
jQuery 1.4.0
jQuery-min 1.7.2
jQueryUI-min 1.8.21
MooTools more-1.4.0.1-full
MooTools core-1.4.5-full
MooTools core-1.4.1-full
Prototype 1.7.1.0
script.aculo.us 1.9.0
SWFObject 2.2
Twitter Bootstrap 2.0.4
WebFont Loader 1.0.28
yui 3.5.1
User Libraries:
Upload File
JavaScript URL(s):
×
CSS Setting
CSS Libraries:
jQueryUI 1.8.21
Twitter Bootstrap 2.0.4
User Libraries:
Upload File
CSS URL(s):