XtGem Forum catalog

p _ x
Bookmark Weezywap
JarApkBmkOpera
(GMT+1)
Monday May 20th 2024
+
Always Post weezywap.xtgem.com on your facebook, twitter, 2go, whatsapp and instagram status! If you love WEEZYWAP and enjoy unlimited services here!
»WEEZYWAP Forum
Forum Rules | Smilies | BB Codes | Back
* kashiii Bro i need this page code

http://rugames.wapamp.com/short

i useng on my site
2017-12-16 06:07 · (0)
* Weezy * kashiii copy the bit.ly short url function code from rugames.wapamp.com
<div class="title"> <b>Short url</b></div>
<script type="text/javascript" src="http://ajax.googleapis.com/
ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{

//bit_url function
function bit_url(url) 

var url=url;
var username="o_2chvim1ph5"; // bit.ly username
var key="R_da99d3e037e94906b3eb7beda02c7797";
$.ajax({
url:"http://api.bit.ly/v3/shorten",
data:{longUrl:url,apiKey:key,login:username},
dataType:"jsonp",
success:function(v)
{
var bit_url=v.data.url;
$("#result").html('<a href="'+bit_url+'" target="_blank">'+bit_url+'</a>');
}
});
}


$("#short").click(function()
{
var url=$("#url").val();
var urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
var urltest=urlRegex.test(url);
if(urltest)
{
bit_url(url);
}
else
{
alert("Bad URL");
}
});

});
</script>

<div class="menu">
<input type="text" value="http://" name="url" id="url"/>
<input type="submit" id="short" value="Submit"/>
<br><br><br><center>
<div id="result"></div></center>
   </div>

Copy code
2017-12-19 08:31 · (0)
* kashiii * Weezy Not warking bro . Plz chak and edit this code again
2017-12-22 05:24 · (0)
* Weezy * kashiii i think u need to register @ bit.ly to get their API access and hash key as seen in the code
2017-12-22 11:21 · (0)
* Weezy * kashiii register @ https://bitly.com/a/sign_up
2017-12-22 11:22 · (0)

Online: Guests: 1

Translate
Pages
Copyright © 2024 WEEZYWAP
facebook twitter whatsapp google plus
Home | About Us | Advertise | Frequently Asked Question | Contact Us | Partners | Disclaimer | Terms of Services | Invite Friends | Credits



Online: 1 , Today: 151, Hits: 7634077
Last modified: 27-08-2018 11:42:51 pm