Advertisement
Guest User

Untitled

a guest
Apr 10th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <!--
  3. Aerial by HTML5 UP
  4. html5up.net | @ajlkn
  5. Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  6. -->
  7. <html>
  8.  
  9. <head>
  10. <title>Recepção</title>
  11. <meta charset="utf-8" />
  12. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
  13. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
  14. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  15. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  16. <link rel="stylesheet" href="assets/css/main.css" />
  17. <noscript>
  18. <link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
  19. </head>
  20.  
  21. <body class="is-preload">
  22. <div id="wrapper">
  23. <div id="main">
  24.  
  25. <!-- Header -->
  26. <header id="header">
  27. <h1>Bem-vindo!!</h1>
  28. <nav>
  29. <ul>
  30. <li><img src="assets/css/images/smartbr.png" onclick="abreAlertaSmartBR(7066)" class="img"></li>
  31. <li><img src="assets/css/images/evocont.png" onclick="abreAlertaSmartBR(7085)" class="img"></li>
  32. <li><img src="assets/css/images/arktus.png" onclick="abreAlertaSmartBR(7099)" class="img"></li>
  33. <li><img src="assets/css/images/focus.png" onclick="abreAlertaSmartBR(7074)" class="img"></li>
  34. </ul>
  35. </nav>
  36. </header>
  37.  
  38. </div>
  39. </div>
  40.  
  41. <script>
  42. function abreAlertaSmartBR(ramal) {
  43. var xhttp = new XMLHttpRequest();
  44. xhttp.onreadystatechange = function () {
  45. if (this.readyState == 4 && this.status == 200) {
  46. document.getElementById("demo").innerHTML = this.responseText;
  47. }
  48. };
  49.  
  50. xhttp.open("POST", "http://192.168.10.175/rest/c2c/?user=crmteste&pass=mea2312!&number1="+ramal+"&number2=8887&id_crm=2&direction=1&exten=5004&id_crm_call=12345", true);
  51. xhttp.send();
  52.  
  53. ramalSelecionado = " ";
  54.  
  55. $('#overlay').modal('show');
  56. setTimeout(function() {
  57. $('#overlay').modal('hide');
  58. }, 3000);
  59.  
  60.  
  61. //alert("\nEstamos efetuando uma ligação para o setor selecionado.\n\nEm breve alguém estará lhe recepcionando!!");
  62. }
  63.  
  64.  
  65.  
  66. window.onload = function () { document.body.classList.remove('is-preload'); }
  67. window.ontouchmove = function () { return false; }
  68. window.onorientationchange = function () { document.body.scrollTop = 0; }
  69. </script>
  70.  
  71. <div class="modal fade" id="overlay">
  72. <div class="modal-dialog">
  73. <div class="modal-content">
  74. <div class="modal-header">
  75. <h4 class="modal-title">Modal title</h4>
  76. </div>
  77. <div class="modal-body">
  78. <p>Context here</p>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83.  
  84. </body>
  85.  
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement