Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Test</title>
  5. <script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
  6. <link href="build/css/bootstrap-tour-standalone.min.css" rel="stylesheet" />
  7. <script src="build/js/bootstrap-tour-standalone.min.js"></script>
  8. <script src="build/js/Script.js"></script>
  9.  
  10.  
  11. <style>
  12. .new {
  13. margin: 20px auto;
  14. width: 500px;
  15. padding: 50px;
  16. background: #EBEBEB;
  17. }
  18.  
  19.  
  20. </style>
  21. </head>
  22. <body>
  23. <div id="test" class="new">
  24. <h1>Header Part</h1>
  25. </div>
  26.  
  27. <div id="test1" class="new">
  28. <h1>Footer Part</h1>
  29. </div>
  30.  
  31.  
  32. </body>
  33. </html>
  34.  
  35. <!DOCTYPE html>
  36. <html xmlns="http://www.w3.org/1999/xhtml">
  37. <head>
  38. <script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
  39. <link href="build/css/bootstrap-tour-standalone.min.css" rel="stylesheet" />
  40. <script src="build/js/bootstrap-tour-standalone.min.js"></script>
  41. <script src="build/js/Script.js"></script>
  42. <title>mine</title>
  43. </head>
  44. <body>
  45.  
  46. <style>
  47. .man {
  48. float: left;
  49. background: red;
  50. width: 400px;
  51. }
  52. </style>
  53. <div id="dumy" class="man">
  54. <h1>This is My Self Made Div</h1>
  55. </div>
  56. </body>
  57. </html>
  58.  
  59. $(function () {
  60. var tour = new Tour({
  61. steps: [
  62. {
  63. element: "#test",
  64. title: "Title of my step",
  65. content: "This is Header"
  66. },
  67. {
  68.  
  69. element: "#test1",
  70. title: "Title of my step",
  71. content: "This is footer"
  72. },
  73. {
  74. path: "/mine.html",
  75. element: "#dumy",
  76. title: "Title of my step",
  77. content: "I made this step own",
  78. // backdrop: true
  79.  
  80. }
  81. ]
  82. });
  83. // Initialize the tour
  84. tour.init();
  85.  
  86. // Start the tour
  87. tour.start();
  88. });
  89.  
  90. $(function () {
  91. var tour = new Tour({
  92. steps: [
  93. {
  94. element: "#test",
  95. title: "Title of my step",
  96. content: "This is Header"
  97. },
  98. {
  99. //add path to the second step
  100. path: "/newly.html",
  101. element: "#test1",
  102. title: "Title of my step",
  103. content: "This is footer"
  104. },
  105. {
  106. path: "/mine.html",
  107. element: "#dumy",
  108. title: "Title of my step",
  109. content: "I made this step own",
  110. // backdrop: true
  111.  
  112. }
  113. ]
  114. });
  115. // Initialize the tour
  116. tour.init();
  117.  
  118. // Start the tour
  119. tour.start();
  120. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement