removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<Project name="Javascript_boot_strapping_method" guid="D85A21E3-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D85A22DD-6C00-1014-B904-200204C60A89">
<Script name="Javascript_boot_strapping_method_1.lsl" guid="D85A442E-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,95 @@
// :CATEGORY:Viewer 2
// :NAME:Javascript_boot_strapping_method
// :AUTHOR:Vegas Silverweb
// :CREATED:2010-09-02 11:04:06.910
// :EDITED:2013-09-18 15:38:55
// :ID:408
// :NUM:564
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Javascript_boot_strapping_method
// :CODE:
string URL;
string get(string page)
{
if (page == "index")
{
return "<h1>Index</h1>This is the index page.<br><br><a href='page1.html'>Link to page 1</a>";
}
else if (page == "page1")
{
return "<h1>Page 1</h1>This is page 1!.<br><br><a href ='index.html'>Link to the index page.</a>";
}
else return "Unknown page.";
}
string serve(string page)
{
return "document.write(atob('"+llStringToBase64(get(page))+"'));";
}
integer R;
load(string page)
{
string content="data:text/html;base64,"
+llStringToBase64("<html><head><base href='"+URL+"/'></head><body>"+
"<script src='"+page+".js' type='text/javascript'>"+
"</script><span r='"+(string)(++R%10)+"</body></html>");
llSetPrimMediaParams(0,[
PRIM_MEDIA_CURRENT_URL,content,
PRIM_MEDIA_HOME_URL,content,
PRIM_MEDIA_AUTO_ZOOM,FALSE,
PRIM_MEDIA_FIRST_CLICK_INTERACT,TRUE,
PRIM_MEDIA_PERMS_INTERACT,PRIM_MEDIA_PERM_ANYONE,
PRIM_MEDIA_PERMS_CONTROL,PRIM_MEDIA_PERM_NONE,
PRIM_MEDIA_AUTO_PLAY,TRUE
]);
}
default
{
state_entry()