diff options
author | Ugnich Anton | 2015-10-19 22:57:41 +0700 |
---|---|---|
committer | Ugnich Anton | 2015-10-19 22:57:41 +0700 |
commit | ed878bfc46df42c56d13fb6f235f9e7f63a64d61 (patch) | |
tree | 1842d1fab6b77cb9a72c63eae01e4d6d7ce943d3 /web/post3.js | |
parent | 804ef16a1df1ecd8a948cdc0894d82cba77e8f42 (diff) |
+ RSS, basic classes
Diffstat (limited to 'web/post3.js')
-rw-r--r-- | web/post3.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/web/post3.js b/web/post3.js deleted file mode 100644 index cde36711..00000000 --- a/web/post3.js +++ /dev/null @@ -1,42 +0,0 @@ -if(window!=window.top) { - window.top.location.href='http://juick.com/post'; -} - -function clearLocation() { - document.getElementById("location").innerHTML='<a href="#" onclick="addLocation()">Choose</a>'; - document.getElementById("locationclear").style.display="none"; - document.getElementById("geomap").style.display="none"; - document.forms["postmsg"].place_id.value=0; -} - -function addLocation() { - document.getElementById("location").innerHTML="?"; - document.getElementById("locationclear").style.display="inline"; - document.getElementById("geomap").style.display="block"; - if(!map) { - mapInit('show=places',1,1); - GEvent.addListener(map,"click", function(overlay) { - if(overlay instanceof GMarker) { - document.getElementById("location").innerHTML='<a href="/places/'+overlay.param+'">'+overlay.getTitle()+'</a>'; - document.forms["postmsg"].place_id.value=overlay.param; - } - }); - } -} - -function addTag(tag) { - var s = document.forms["postmsg"].body.value; - if (s.indexOf ('#') == 0) { - document.forms["postmsg"].body.value = s + ' *' + tag; - } else { - document.forms["postmsg"].body.value = '*' + tag + ' ' + s; - } - return false; -} - -$(document).ready(function() { - clearLocation(); - $("textarea")[0].focus(); -}); - -$(window).unload(GUnload); |