groups.html


SUBMITTED BY: Guest

DATE: Oct. 24, 2013, 2:45 p.m.

FORMAT: Text only

SIZE: 11.4 kB

HITS: 1032

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Reddrummer - Groups</title>
  7. <meta http-equiv="content-type" content="application/xhtml+xml" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  9. <link rel="apple-touch-icon" href="images/icon.png" />
  10. <!--CSS-->
  11. <link rel="stylesheet" type="text/css" href="css/style.css" />
  12. <!--jQuery-->
  13. <script type="text/javascript" src="js/jquery.js"></script>
  14. <script type="text/javascript" src="js/jquery.tools.min.js"></script>
  15. <script type="text/javascript" src="js/dropdown.js"></script>
  16. <script type="text/javascript" src="js/superfish.js"></script>
  17. <script type="text/javascript" src="js/highdpi.js"></script>
  18. <!--Cordova-->
  19. <script type="text/javascript" src="cordova.js"></script>
  20. <!-- Javascript APP -->
  21. <script type="text/javascript" src="js/init.js"></script>
  22. <script type="text/javascript">
  23. $(function() {
  24. $( "#accordion" ).accordion();
  25. //Groups function
  26. //
  27. $(".li_sub").click(function(event){
  28. event.preventDefault();
  29. $.ajax({
  30. type:'GET',
  31. url:'http://api.reddrummer.com/groups/mygroups.json?api_key=' + session.token,
  32. dataType: 'application/json',
  33. success: function(){
  34. jsonData = JSON.parse(data);
  35. for (var i = 0; i < jsonData.groups.length; i++) {
  36. var groupComplete = jsonData.groups[i]._self;
  37. array = groupComplete.split('/');
  38. idGroup = array[array.length-1];
  39. groupBound = array[array.length-2];
  40. if (groupBound == 'houseorgan') {
  41. $("#in").html("<ul><li id=" + idGroup + " name=" + groupBound + " ><a href='#' class='see-posts'>" +
  42. jsonData.groups[i].name + "</a></li></ul>");
  43. } else if (groupBound == 'brandchannel'){
  44. $("#out").html("<ul><li id=" + idGroup + " name=" + groupBound + " ><a href='#' class='see-posts'>" +
  45. jsonData.groups[i].name + "</a></li></ul>");
  46. } else {
  47. $("#social").html("<ul><li id=" + idGroup + " name=" + groupBound + " ><a href='#' class='see-posts'>" +
  48. jsonData.groups[i].name + "</a></li></ul>");
  49. }
  50. };
  51. },
  52. error: function(msg){
  53. navigator.notification.alert(msg);
  54. }
  55. });
  56. });
  57. $(".see-posts").click(function(event){
  58. event.preventDefault();
  59. var group_id = $(event.currentTarget).attr('id');
  60. var groub_bound = $(event.currentTarget).attr('name');
  61. $.ajax({
  62. url = 'http://api.reddrummer.com/groups/postsbygrouplimitoffset.json/' + group_id + '/5/0?api_key=' + session.token,
  63. data = {'group_id': group_id},
  64. success: function(){
  65. navigator.notification.alert('msg');
  66. },
  67. error: function(msg){
  68. navigator.notification.alert(msg);
  69. }
  70. });
  71. });
  72. });
  73. </script>
  74. </head>
  75. <body>
  76. <!--Search box (this layer is hidden)-->
  77. <div class="box" id="box">
  78. <!--Form search-->
  79. <form action="" method="post" name="search">
  80. <h4>Search</h4>
  81. <input type="text" name="search" placeholder="Search..." class="input_text" />
  82. <br />
  83. <div class="buttons">
  84. <a href="javascript:document.search.submit();" title="Search" class="button gray search_button">
  85. <span class="before"></span>
  86. Search
  87. <span class="after"></span>
  88. </a>
  89. <a title="Close" id="boxclose" class="button gray search_button">
  90. <span class="before"></span>
  91. Close
  92. <span class="after"></span>
  93. </a>
  94. </div>
  95. </form>
  96. <!--Form search Ends-->
  97. </div>
  98. <!--Search box Ends-->
  99. <!--Top page (logo, search and alert button)-->
  100. <div id="top" class="page_x">
  101. <div id="header">
  102. <div id="content_header">
  103. <a href="logged.html">
  104. <img src="images/logo.png" width="120px" height="36px" alt="Reddrummer Mobile" style="padding-top: 6px;" />
  105. </a>
  106. <a href="#" id="activator">
  107. <img src="images/search.png" width="38px" height="37px" alt="Search" class="replace-2x search" />
  108. </a>
  109. <a href="#" id="alert">
  110. <img src="images/alert.png" width="38px" height="37px" alt="Alert" class="replace-2x search" />
  111. </a>
  112. </div>
  113. </div>
  114. </div>
  115. <!--Top page Ends-->
  116. <!--Navigation-->
  117. <div id="navigation">
  118. <div id="content_navigation">
  119. <a href="javascript:history.back()">
  120. <img src="images/back.png" width="78px" height="35px" alt="Go back" class="replace-2x butt_black left" />
  121. </a>
  122. <a href="#" id="categories-button">
  123. <img src="images/navigation.png" width="102px" height="35px" alt="Open menu" class="replace-2x butt_black right" />
  124. </a>
  125. <div id="categories-dropdown">
  126. <div class="categories-inside">
  127. <ul>
  128. <li><a href="logged.html">Home</a></li>
  129. <li><a href="read.html">Posts</a></li>
  130. <li><a href="write.html">Write</a></li>
  131. <li><a href="profile.html">Profile</a></li>
  132. <li><a href="channels.html">Channels</a></li>
  133. <li><a href="groups.html">Groups</a></li>
  134. <li><a href="javascript:doLogout();">Logout</a></li>
  135. </ul>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <!--Navigation Ends-->
  141. <!--Main contents-->
  142. <div class="box_center" id="page_x" style="width:100%; height: 100%">
  143. <div class="demo">
  144. <div id="accordion">
  145. <ul class="accordion">
  146. <li id="in" class="li_sub">Inbound</li>
  147. <li id="out" class="li_sub">Outbound</li>
  148. <li id="social" class="li_sub">Socialbound</li>
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. <!--Main contents Ends-->
  154. <!--Footer-->
  155. <div id="footer" style="margin: 0 0 0 0;">
  156. <div id="content_footer">
  157. <!--Your copyright-->
  158. <div id="copyright">
  159. All rights reserved 2013
  160. </div>
  161. <!--Your copyright Ends-->
  162. <!--Back to top button-->
  163. <div id="back_to_top">
  164. <a href="#">
  165. <img src="images/back_to_top.png" width="17px" height="17px" class="replace-2x" alt="Back to top" />
  166. <span>&nbsp;Back to top</span>
  167. </a>
  168. </div>
  169. <!--Back to top button Ends-->
  170. </div>
  171. </div>
  172. <!--Footer Ends-->
  173. </body>
  174. </html>

comments powered by Disqus