Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getData(type) {
- $(".galleries-c").load("dataSelect.php", {type: type},
- function() {
- if(type == "Tabl")
- type += "e";
- $("#selection").text(type);
- });
- }
- $(document).ready(function() {
- var url = new URL(window.location);
- var a = url.searchParams.get("t");
- var b = url.searchParams.get("id");
- console.log(a);
- console.log(b);
- if(a != "")
- getData("<?php echo $_GET['t']?>");
- else
- getData(<?php echo json_encode($_GET['id']) ?>);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement