Skip to main content

Posts

Showing posts from March, 2018

Call Console Function

// function takeOverConsole(){ //     var console = window.console //     if (!console) return //     function intercept(method){ //         // alert(method); //         var original = console[method] //         console[method] = function(){ //             // do sneaky stuff //               location.reload(); //             if (original.apply){ //                 // Do this for normal browsers //                 original.apply(console, arguments); //             }else{ //                 // Do this for IE //                 var mess...

How to use Modal in meteor blaze

// modal  trigger <a  href="#Show_invited_list" class=" modal -trigger trigger_helper" style="width: 100%; margin-top: 10px;" id="Show_invited" > // modal  html   <div id="Show_invited_list" class=" modal   modal -fixed-footer modal_invitees modal_content_height">         <div class=" modal -header modal_header_create_event">       <p class="modal_heading_p" style="margin-bottom: 0px;"><span style="margin-right: 20px;"><i class="fa fa-chevron-left"></i> </span> S</p>         </div>     <div class=" modal -content">        <ul class="collection">     <li class="collection-item avatar " style="margin-bottom: 10px;">       <img src="{{profile_pic}}" alt="" class="circle modal_invitees_img_page"> ...
IAP-Push notification public function sendGCM($message, $token,$title) { $url = 'https://fcm.googleapis.com/fcm/send'; $fields = array ( 'registration_ids' => array ( $token ), 'data' => array ( "message" => $message,"image"=>"","title"=>$title, ) ); $fields = json_encode ( $fields ); $headers = array ( 'Authorization: key=' . "AAAAEQPRwxo:APA91bFQWCTG52YN76-i9nh6g_Jlz-VUIOQEabK7jncSBuVczpiQhODGq9LqTiDkEOqweAxBqm6anknBFmRfK601cpco-Jh76pESzFqtPBx2TS7kzdf6b3mE7DVHdN_aq2swka_c5oiE", 'Content-Type: application/json' ); $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, $url ); curl_setopt ( $ch, CURLOPT_POST, true ); curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_...