Advertisement
fall3n

comment.php

May 8th, 2019
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5.  
  6.     <meta charset="utf-8">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  8.     <meta name="description" content="Neon Admin Panel" />
  9.     <meta name="author" content="" />
  10.  
  11.     <link rel="icon" href="assets/images/favicon.ico">
  12.  
  13.     <title>Facebook Comment Collector</title>
  14.  
  15.     <link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
  16.     <link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css">
  17.     <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
  18.     <link rel="stylesheet" href="assets/css/bootstrap.css">
  19.     <link rel="stylesheet" href="assets/css/neon-core.css">
  20.     <link rel="stylesheet" href="assets/css/neon-theme.css">
  21.     <link rel="stylesheet" href="assets/css/neon-forms.css">
  22.     <link rel="stylesheet" href="assets/css/custom.css">
  23.  
  24.     <script src="assets/js/jquery-1.11.3.min.js"></script>
  25.  
  26.     <!--[if lt IE 9]><script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  27.    
  28.     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  29.     <!--[if lt IE 9]>
  30.         <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  31.         <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  32.     <![endif]-->
  33.        
  34.  
  35. </head>
  36. <body class="page-body" data-url="http://neon.dev">
  37.  
  38. <div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
  39.    
  40.     <div class="sidebar-menu">
  41.  
  42.         <div class="sidebar-menu-inner">
  43.            
  44.             <header class="logo-env">
  45.  
  46.                 <!-- logo -->
  47.                 <div class="logo">
  48.                     <a href="index.html">
  49.                         <img src="assets/images/facebook.png" width="120" alt="" />
  50.                     </a>
  51.                 </div>
  52.  
  53.                 <!-- logo collapse icon -->
  54.                 <div class="sidebar-collapse">
  55.                     <a href="#" class="sidebar-collapse-icon"><!-- add class "with-animation" if you want sidebar to have animation during expanding/collapsing transition -->
  56.                         <i class="entypo-menu"></i>
  57.                     </a>
  58.                 </div>
  59.  
  60.                                
  61.                 <!-- open/close menu icon (do not remove if you want to enable menu on mobile devices) -->
  62.                 <div class="sidebar-mobile-menu visible-xs">
  63.                     <a href="#" class="with-animation"><!-- add class "with-animation" to support animation -->
  64.                         <i class="entypo-menu"></i>
  65.                     </a>
  66.                 </div>
  67.  
  68.             </header>
  69.            
  70.                                    
  71.             <ul id="main-menu" class="main-menu">
  72.                 <!-- add class "multiple-expanded" to allow multiple submenus to open -->
  73.                 <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
  74.                 <li class="has-sub">
  75.                     <a href="./">
  76.                         <i class="entypo-window"></i>
  77.                         <span class="title">Facebook Comment Reader</span>
  78.                     </a>
  79.                 </li>
  80.             </ul>
  81.            
  82.         </div>
  83.  
  84.     </div>
  85.  
  86.     <div class="main-content">
  87.                
  88.         <div class="row">
  89.        
  90.             <!-- Profile Info and Notifications -->
  91.             <div class="col-md-6 col-sm-8 clearfix">
  92.        
  93.                 <ul class="user-info pull-left pull-none-xsm">
  94.        
  95.                     <!-- Profile Info -->
  96.                     <li class="profile-info dropdown"><!-- add class "pull-right" if you want to place this from right -->
  97.        
  98.                         <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  99.                             <img src="assets/images/comment.png" alt="" width="44" />
  100.                             Facebook Comment Collector
  101.                         </a>
  102.    
  103.                     </li>
  104.        
  105.                 </ul>
  106.        
  107.             </div>
  108.        
  109.         </div>
  110.        
  111.         <hr />
  112.  
  113. <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
  114. <!-- ----------------------------------------------------------- CODE ------------------------------------------------------------ -->
  115. <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
  116.  
  117.         <script type="text/javascript">
  118.             jQuery( document ).ready( function( $ ) {
  119.                 var $table3 = jQuery("#table-3");
  120.  
  121.                 // var table3 = $table3.DataTable( {
  122.                 //  
  123.                 // } );
  124.                
  125.                
  126.                 var table3 = $table3.DataTable( {
  127.                     // "processing": true,
  128.                     //"serverSide": true,
  129.                     "bPaginate": false,
  130.                     "paging": true,
  131.                     "bInfo": true,
  132.                     "ajax": {
  133.                         "url": "http://localhost/project/FB_callback/fb-callback.php?post_id=12345_67890",
  134.                         "type" : "GET",
  135.                         "dataSrc":  function (response) {
  136.                             // console.log(response);
  137.                             if(response.whaterver == 0){
  138.                                //DO YOUR THING HERE
  139.                             }
  140.                             //return back the response
  141.                             return response;
  142.                         },
  143.                         error: function (xhr, error, code){
  144.                             console.log(xhr);
  145.                             console.log(code);
  146.                             console.log(error);
  147.                         }
  148.                     },
  149.                     "columns": [
  150.                         { "data": "from.name" },
  151.                         { "data": "message" },
  152.                         { "data": "created_time.date" }
  153.                     ],
  154.                     "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
  155.                 } );
  156.                
  157.                 // Initalize Select Dropdown after DataTables is created
  158.                 $table3.closest( '.dataTables_wrapper' ).find( 'select' ).select2( {
  159.                     minimumResultsForSearch: -1
  160.                 });
  161.                
  162.                 // Setup - add a text input to each footer cell
  163.                 $( '#table-3 tfoot th' ).each( function () {
  164.                     var title = $('#table-3 thead th').eq( $(this).index() ).text();
  165.                     $(this).html( '<input type="text" class="form-control" placeholder="Search ' + title + '" />' );
  166.                 } );
  167.                
  168.                 // Apply the search
  169.                 table3.columns().every( function () {
  170.                     var that = this;
  171.                
  172.                     $( 'input', this.footer() ).on( 'keyup change', function () {
  173.                         if ( that.search() !== this.value ) {
  174.                             that
  175.                                 .search( this.value )
  176.                                 .draw();
  177.                         }
  178.                     } );
  179.                 } );
  180.  
  181.  
  182.                 setInterval(function(){
  183.                     table3.draw();
  184.                 }, 1000);
  185.             } );
  186.  
  187.  
  188.  
  189.         </script>
  190.        
  191. <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
  192. <!-- ----------------------------------------------------------- CODE ------------------------------------------------------------ -->
  193. <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
  194.  
  195.  
  196.         <table class="table table-bordered datatable" id="table-3">
  197.             <thead>
  198.                 <tr class="replace-inputs">
  199.                     <th>Commenter</th>
  200.                     <th>Comment</th>
  201.                     <th>Time</th>
  202.                 </tr>
  203.             </thead>
  204.             <tbody>
  205.             </tbody>
  206.             <tfoot>
  207.                 <tr>
  208.                     <th>Commenter</th>
  209.                     <th>Comment</th>
  210.                     <th>Time</th>
  211.                 </tr>
  212.             </tfoot>
  213.         </table>
  214.        
  215.         <br />
  216.        
  217.        
  218.         <br />
  219.         <!-- Footer -->
  220.         <footer class="main">
  221.         -------------------------------------------------------
  222.         </footer>
  223.     </div>
  224.  
  225.    
  226. </div>
  227.  
  228.  
  229.  
  230.  
  231.  
  232.     <!-- Imported styles on this page -->
  233.     <link rel="stylesheet" href="assets/js/datatables/datatables.css">
  234.     <link rel="stylesheet" href="assets/js/select2/select2-bootstrap.css">
  235.     <link rel="stylesheet" href="assets/js/select2/select2.css">
  236.  
  237.     <!-- Bottom scripts (common) -->
  238.     <script src="assets/js/gsap/TweenMax.min.js"></script>
  239.     <script src="assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
  240.     <script src="assets/js/bootstrap.js"></script>
  241.     <script src="assets/js/joinable.js"></script>
  242.     <script src="assets/js/resizeable.js"></script>
  243.     <script src="assets/js/neon-api.js"></script>
  244.  
  245.  
  246.     <!-- Imported scripts on this page -->
  247.     <script src="assets/js/datatables/datatables.js"></script>
  248.     <script src="assets/js/select2/select2.min.js"></script>
  249.     <script src="assets/js/neon-chat.js"></script>
  250.  
  251.  
  252.     <!-- JavaScripts initializations and stuff -->
  253.     <script src="assets/js/neon-custom.js"></script>
  254.  
  255.  
  256.     <!-- Demo Settings -->
  257.     <script src="assets/js/neon-demo.js"></script>
  258.  
  259. </body>
  260. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement