Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_GET["id"]) && is_numeric($_GET["id"])){
- echo '
- <script>
- $(".fondo-popup").fadeIn("slow");
- $(".open-display").slideDown("slow");
- $.ajax({
- type:"POST",
- data: "id='.$_GET["id"].'",
- url: "publi.php",
- success:function(data){
- var res= JSON.parse(data);
- window.history.pushState("", "", "/view-"+res.id+".html");
- $(".content-view h1").text(res.titulo);
- $(".description p").text(res.descripcion);
- $(".repro").attr("src",res.link);
- $("#tw").attr("onclick","window.open(\'http://twitter.com/intent/tweet?&url=http://www.descansos.net/view-"+res.id+".html\',\'_blank\', \'width=640, height=340\'); return false;");
- $("#fb").attr("onclick","window.open(\'http://www.facebook.com/sharer.php?u=http://www.descansos.net/view-"+res.id+".html\',\'_blank\', \'width=640, height=340\'); return false;");
- }
- });
- </script>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement