-
Notifications
You must be signed in to change notification settings - Fork 0
/
assetRedirect.html
41 lines (30 loc) · 944 Bytes
/
assetRedirect.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> asset redirect </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript">
function sendToAsset() {
//alert('sendToAsset');
var objName = gup("objName");
var objFile = decodeURIComponent(gup("imageName"));
window.opener.setFile(objName, objFile);
window.close();
}
function gup( name ){
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null ) return "";
else return results[1];
}
</script>
</head>
<body onload="sendToAsset();">
sendToAsset
</body>
</html>