File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1313< script type ="text/javascript " src ="face.js "> </ script >
1414< script type ="text/javascript ">
1515
16+ window . onload = function ( ) {
17+ var url = window . location . hash . substr ( 1 ) ;
18+ if ( url . length > 7 )
19+ document . getElementById ( "image" ) . value = decodeURIComponent ( url ) ;
20+ }
21+
1622function resizeCanvas ( image , canvas ) {
1723 document . body . appendChild ( image ) ;
1824 canvas . width = image . offsetWidth ;
4046function detect ( ) {
4147 var image = new Image ( ) ;
4248 var url = document . getElementById ( "image" ) . value ;
49+ window . location . hash = "#" + encodeURIComponent ( url ) ;
4350 image . src = "loader.php?src=" + encodeURIComponent ( ( url . substr ( 0 , 7 ) . toLowerCase ( ) == "http://" ) ? url : "http://" + url ) ;
4451 var canvas = document . getElementById ( "output" ) ;
4552 var ctx = canvas . getContext ( "2d" ) ;
You can’t perform that action at this time.
0 commit comments