source for sakino.kelbie.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

7 months ago
  1. //ページ指定クエリ付きのアクセスが有った時にアプリを開くボタンにクエリを適用を定義
  2. var prmStr = window.location.search;
  3. var pagecode = -1;
  4. var sid = -1;
  5. var encrypted = 0;
  6. if(prmStr != ""){
  7. prmStr = prmStr.substring(1);
  8. var prmArr = prmStr.split("&");
  9. for(var i=0; i < prmArr.length; i++){
  10. var prmKey = prmArr[i].split("=")[0];
  11. switch(prmKey){
  12. case "pagecode":
  13. pagecode = prmArr[i].split("=")[1];
  14. break;
  15. case "sid":
  16. sid = prmArr[i].split("=")[1];
  17. break;
  18. }
  19. }
  20. var hrefStr = "";
  21. if(pagecode != -1){
  22. hrefStr += "&pageno="+pagecode;
  23. }
  24. if(sid != -1){
  25. hrefStr += "&sid="+sid;
  26. }
  27. var objAppLink = document.getElementById("applink");
  28. var objAppLink02 = document.getElementById("applink02");
  29. if(objAppLink != null && objAppLink.href.indexOf('actibook:///') != -1){
  30. objAppLink.href += hrefStr;
  31. }
  32. if(objAppLink02 != null && objAppLink02.href.indexOf('actibook:///') != -1){
  33. objAppLink02.href += hrefStr;
  34. }
  35. }
  36. function preOpenMain(){
  37. if(pagecode != -1 && sid != -1){
  38. WindowOpenMain(1000,670,'_blank',{'resizable':'yes','pagecode':pagecode,'sid':sid});
  39. }else if(pagecode == -1 && sid != -1){
  40. WindowOpenMain(1000,670,'_blank',{'resizable':'yes','sid':sid});
  41. }else if(pagecode != -1 && sid == -1){
  42. WindowOpenMain(1000,670,'_blank',{'resizable':'yes','pagecode':pagecode});
  43. }else{
  44. WindowOpenMain(1000,670,'_blank',{'resizable':'yes'});
  45. }
  46. }