Advertisement
Guest User

JS Ongamemodeinit

a guest
Jun 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  function OnGameModeInit() {
  2.         var id = $(this).attr("id");
  3.         for (var y = 1; y < 3; y++) {
  4.             $.each(ImgSource, function(i, val) {
  5.                 $(Source).append("<div class=classecss id=card" + y + i + "><img class=imgclass id=img" + y + i + " src=" + val + " />");
  6.  
  7.             });
  8.         }
  9.         $(Source + " div").click(onPlayerOpenCard);
  10.         onGameModeShuffle();
  11.         GetRecordOnInit();
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement