PageRenderTime 21ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/phono-js/samples/callme/index.htm

https://github.com/mastahype/PhonoSDK
HTML | 182 lines | 164 code | 13 blank | 5 comment | 0 complexity | 774218f715eece0d189cdffd920a7edd MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>
  5. Phono - callme plugin
  6. </title>
  7. <meta http-equiv="PRAGMA" content="NO-CACHE" />
  8. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <!-- CSS for sample layout -->
  11. <link type="text/css"rel="stylesheet" href="../samples.css"/>
  12. <link type="text/css" rel="stylesheet" href="http://s.phono.com/deps/prettify/prettify.css"/>
  13. <!-- jQuery - required -->
  14. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
  15. <!-- Libraries/plugins for sample display - not required -->
  16. <script type="text/javascript" src="http://s.phono.com/deps/prettify/prettify.js"></script>
  17. <script type="text/javascript" src="http://s.phono.com/deps/themeswitcher/jquery.themeswitcher.min.js"></script>
  18. <!-- Phono and callme plugin - required -->
  19. <script type="text/javascript" src="../../jquery.phono.js"></script>
  20. <script type="text/javascript" src="http://s.phono.com/addons/callme/79a53b7/jquery.callme.js"></script>
  21. <!-- Sample styles -->
  22. <style type="text/css">
  23. #phone-hldr, #switcher{
  24. width:925px;
  25. position:relative;
  26. margin:0 auto;
  27. margin-top:25px;
  28. }
  29. #sample-1{
  30. float:left;
  31. }
  32. #sample-2{
  33. float:right;
  34. }
  35. .sample-hldr{
  36. width:430px;
  37. min-height:200px;
  38. text-align:center;
  39. font-size: 120%;
  40. padding:10px;
  41. background:#efefef;
  42. border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;
  43. min-height:225px;
  44. }
  45. pre{
  46. height:250px;
  47. margin-top:20px;
  48. overflow-y: auto;
  49. overflow-x: auto;
  50. text-align:left;
  51. font-size:11px;
  52. padding:5px !important;
  53. background:#FFF;
  54. border:3px solid #CCC !important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;
  55. font-family: monaco, 'Bitstream Vera Sans Mono', 'Courier New', courier, monospace;
  56. }
  57. </style>
  58. <script type="text/javascript">
  59. $(document).ready(function(){
  60. prettyPrint();
  61. $("#switcher").themeswitcher({
  62. loadTheme:"UI darkness",
  63. width:210,
  64. imgPath:"http://s.phono.com/deps/themeswitcher/images/"
  65. })
  66. $("#sample-1 .sample-phone").append(
  67. $("<div/>")
  68. .css({"width":"220px","margin":"0 auto"})
  69. .callme({
  70. apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
  71. numberToDial: "8003544487",
  72. buttonTextReady: "1-800-FLIGHTS",
  73. slideOpen:false,
  74. dialPad: false
  75. })
  76. )
  77. $("#sample-2 .sample-phone").append(
  78. $("<div/>")
  79. .css({"width":"220px","margin":"0 auto"})
  80. .callme({
  81. apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
  82. numberToDial: "8007773456",
  83. buttonTextReady: "1-800-777-FILM",
  84. slideOpen:true
  85. })
  86. )
  87. });
  88. </script>
  89. </head>
  90. <body>
  91. <div id="sample-header">
  92. <div class="header">
  93. <div class="logo">
  94. <a href="http://www.phono.com/demos" title="Phono Home"><img src="../logo-home-big.png" width="120" border="0" height="153"/></a>
  95. </div>
  96. <div class="intro">
  97. <h1>Callme</h1>
  98. <p>
  99. A jQuery plugin and Phono add-on that makes it easy to drop a callme button directly into any webpage with just a few lines of code.
  100. The callme plugin depends on the Phono library to make calls and uses <a href="http://jqueryui.com/themeroller/">jQuery UI theming</a> for styling.
  101. </p>
  102. <p>
  103. Checkout the <a href="https://github.com/phono/callme">Github repository</a> for the project source and full documentation.
  104. </p>
  105. </div>
  106. </div>
  107. </div>
  108. <div id="switcher"></div>
  109. <div id="phone-hldr">
  110. <div id="sample-2" class="sample-hldr">
  111. <h2>Callme button with sliding dialpad</h2>
  112. <div class="sample-phone"></div>
  113. <pre class="prettyprint" style="margin-top:47px;">
  114. &lt;html&gt;
  115. &lt;head&gt;
  116. &lt;link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/ui-darkness/jquery-ui.css"/&gt;
  117. &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
  118. &lt;script type="text/javascript" src="http://s.phono.com/releases/0.2/jquery.phono.js"&gt;&lt;/script&gt;
  119. &lt;script type="text/javascript" src="http://s.phono.com/addons/callme/79a53b7/jquery.callme.js"&gt;&lt;/script&gt;
  120. &lt;/head&gt;
  121. &lt;body&gt;
  122. &lt;script type="text/javascript"&gt;
  123. $("body").append(
  124. $("&lt;div/&gt;")
  125. .css("width","210px")
  126. .callme({
  127. apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
  128. numberToDial: "8007773456",
  129. buttonTextReady: "1-800-777-FILM",
  130. slideOpen:true
  131. })
  132. )
  133. &lt;/script&gt;
  134. &lt;/body&gt;
  135. &lt;/html&gt;
  136. </pre>
  137. </div>
  138. <div id="sample-1" class="sample-hldr">
  139. <h2>Callme button with no dialpad</h2>
  140. <div class="sample-phone"></div>
  141. <pre class="prettyprint">
  142. &lt;html&gt;
  143. &lt;head&gt;
  144. &lt;link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/ui-darkness/jquery-ui.css"/&gt;
  145. &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
  146. &lt;script type="text/javascript" src="http://s.phono.com/releases/0.2/jquery.phono.js"&gt;&lt;/script&gt;
  147. &lt;script type="text/javascript" src="http://s.phono.com/addons/callme/79a53b7/jquery.callme.js"&gt;&lt;/script&gt;
  148. &lt;/head&gt;
  149. &lt;body&gt;
  150. &lt;script type="text/javascript"&gt;
  151. $("body").append(
  152. $("&lt;div/&gt;")
  153. .css("width","210px")
  154. .callme({
  155. apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
  156. numberToDial: "8003544487",
  157. buttonTextReady: "1-800-FLIGHTS",
  158. slideOpen:false,
  159. dialPad: false
  160. })
  161. )
  162. &lt;/script&gt;
  163. &lt;/body&gt;
  164. &lt;/html&gt;
  165. </pre>
  166. </div>
  167. </div>
  168. </body>
  169. </html>