Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="description" content="Neon Admin Panel" />
- <meta name="author" content="" />
- <link rel="icon" href="assets/images/favicon.ico">
- <title>Facebook Comment Collector</title>
- <link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
- <link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css">
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
- <link rel="stylesheet" href="assets/css/bootstrap.css">
- <link rel="stylesheet" href="assets/css/neon-core.css">
- <link rel="stylesheet" href="assets/css/neon-theme.css">
- <link rel="stylesheet" href="assets/css/neon-forms.css">
- <link rel="stylesheet" href="assets/css/custom.css">
- <script src="assets/js/jquery-1.11.3.min.js"></script>
- <!--[if lt IE 9]><script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body class="page-body" data-url="http://neon.dev">
- <div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
- <div class="sidebar-menu">
- <div class="sidebar-menu-inner">
- <header class="logo-env">
- <!-- logo -->
- <div class="logo">
- <a href="index.html">
- <img src="assets/images/facebook.png" width="120" alt="" />
- </a>
- </div>
- <!-- logo collapse icon -->
- <div class="sidebar-collapse">
- <a href="#" class="sidebar-collapse-icon"><!-- add class "with-animation" if you want sidebar to have animation during expanding/collapsing transition -->
- <i class="entypo-menu"></i>
- </a>
- </div>
- <!-- open/close menu icon (do not remove if you want to enable menu on mobile devices) -->
- <div class="sidebar-mobile-menu visible-xs">
- <a href="#" class="with-animation"><!-- add class "with-animation" to support animation -->
- <i class="entypo-menu"></i>
- </a>
- </div>
- </header>
- <ul id="main-menu" class="main-menu">
- <!-- add class "multiple-expanded" to allow multiple submenus to open -->
- <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
- <li class="has-sub">
- <a href="./">
- <i class="entypo-window"></i>
- <span class="title">Facebook Comment Reader</span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <div class="main-content">
- <div class="row">
- <!-- Profile Info and Notifications -->
- <div class="col-md-6 col-sm-8 clearfix">
- <ul class="user-info pull-left pull-none-xsm">
- <!-- Profile Info -->
- <li class="profile-info dropdown"><!-- add class "pull-right" if you want to place this from right -->
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
- <img src="assets/images/comment.png" alt="" width="44" />
- Facebook Comment Collector
- </a>
- </li>
- </ul>
- </div>
- </div>
- <hr />
- <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
- <!-- ----------------------------------------------------------- CODE ------------------------------------------------------------ -->
- <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
- <script type="text/javascript">
- jQuery( document ).ready( function( $ ) {
- var $table3 = jQuery("#table-3");
- // var table3 = $table3.DataTable( {
- //
- // } );
- var table3 = $table3.DataTable( {
- // "processing": true,
- //"serverSide": true,
- "bPaginate": false,
- "paging": true,
- "bInfo": true,
- "ajax": {
- "url": "http://localhost/project/FB_callback/fb-callback.php?post_id=12345_67890",
- "type" : "GET",
- "dataSrc": function (response) {
- // console.log(response);
- if(response.whaterver == 0){
- //DO YOUR THING HERE
- }
- //return back the response
- return response;
- },
- error: function (xhr, error, code){
- console.log(xhr);
- console.log(code);
- console.log(error);
- }
- },
- "columns": [
- { "data": "from.name" },
- { "data": "message" },
- { "data": "created_time.date" }
- ],
- "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
- } );
- // Initalize Select Dropdown after DataTables is created
- $table3.closest( '.dataTables_wrapper' ).find( 'select' ).select2( {
- minimumResultsForSearch: -1
- });
- // Setup - add a text input to each footer cell
- $( '#table-3 tfoot th' ).each( function () {
- var title = $('#table-3 thead th').eq( $(this).index() ).text();
- $(this).html( '<input type="text" class="form-control" placeholder="Search ' + title + '" />' );
- } );
- // Apply the search
- table3.columns().every( function () {
- var that = this;
- $( 'input', this.footer() ).on( 'keyup change', function () {
- if ( that.search() !== this.value ) {
- that
- .search( this.value )
- .draw();
- }
- } );
- } );
- setInterval(function(){
- table3.draw();
- }, 1000);
- } );
- </script>
- <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
- <!-- ----------------------------------------------------------- CODE ------------------------------------------------------------ -->
- <!-- ----------------------------------------------------------------------------------------------------------------------------- -->
- <table class="table table-bordered datatable" id="table-3">
- <thead>
- <tr class="replace-inputs">
- <th>Commenter</th>
- <th>Comment</th>
- <th>Time</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- <tfoot>
- <tr>
- <th>Commenter</th>
- <th>Comment</th>
- <th>Time</th>
- </tr>
- </tfoot>
- </table>
- <br />
- <br />
- <!-- Footer -->
- <footer class="main">
- -------------------------------------------------------
- </footer>
- </div>
- </div>
- <!-- Imported styles on this page -->
- <link rel="stylesheet" href="assets/js/datatables/datatables.css">
- <link rel="stylesheet" href="assets/js/select2/select2-bootstrap.css">
- <link rel="stylesheet" href="assets/js/select2/select2.css">
- <!-- Bottom scripts (common) -->
- <script src="assets/js/gsap/TweenMax.min.js"></script>
- <script src="assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
- <script src="assets/js/bootstrap.js"></script>
- <script src="assets/js/joinable.js"></script>
- <script src="assets/js/resizeable.js"></script>
- <script src="assets/js/neon-api.js"></script>
- <!-- Imported scripts on this page -->
- <script src="assets/js/datatables/datatables.js"></script>
- <script src="assets/js/select2/select2.min.js"></script>
- <script src="assets/js/neon-chat.js"></script>
- <!-- JavaScripts initializations and stuff -->
- <script src="assets/js/neon-custom.js"></script>
- <!-- Demo Settings -->
- <script src="assets/js/neon-demo.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement