Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. function getData(type) {
  2. $(".galleries-c").load("dataSelect.php", {type: type},
  3. function() {
  4. if(type == "Tabl")
  5. type += "e";
  6.  
  7. $("#selection").text(type);
  8. });
  9. }
  10. $(document).ready(function() {
  11. var url = new URL(window.location);
  12. var a = url.searchParams.get("t");
  13. var b = url.searchParams.get("id");
  14. console.log(a);
  15. console.log(b);
  16. if(a != "")
  17. getData("<?php echo $_GET['t']?>");
  18. else
  19. getData(<?php echo json_encode($_GET['id']) ?>);
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement