This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
if (!Worker) //Detect IE | |
document.location = "http://www.whatbrowser.org/ru/browser/"; | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
class Registration_model extends CI_Model { | |
/** | |
* [__construct description] | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use the .scroll() event on window, like this: | |
$(window).scroll(function() { | |
if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
alert("bottom!"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('scroll', function() { | |
var y_scroll_pos = window.pageYOffset; | |
var scroll_pos_test = 150; // set to whatever you want it to be | |
if(y_scroll_pos > scroll_pos_test) { | |
//do stuff | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () | |
{ | |
$(".categoryListEl").mouseenter(function () { | |
$this = $(this); | |
$this.find("span").css("display", "block"); | |
}).mouseleave(function () | |
{ | |
$this = $(this); | |
$this.find("span").hide(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// requires Facebook PHP SDK 4.0.x or later | |
// user must be logged-in prior to API call | |
// publish story, requires 'places' attribute | |
// use a page_id with no address to tag hidden location | |
// $tags is a comma-separated string of IDs | |
$story = (new FacebookRequest( $session, 'POST', '/me/feed', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
// Be sure to ask for the publish_actions permission first | |
// If you provided a 'default_access_token', third parameter '{access-token}' is optional. | |
$response = $fb->post( '/me/feed', [ | |
'name' => 'Facebook API: Using the Facebook PHP SDK v4.1.x', | |
'link' => 'https://www.webniraj.com/2015/02/19/facebook-api-using-the-facebook-php-sdk-v4-1-x/', | |
'caption' => 'As version v4.1 of the Facebook PHP SDK nears release (at time of writing), I though this would be a good time to explain how the new version works. Migrating your application from v4.0.x to v4.1.x will break your application.', | |
'message' => 'Check out my new blog post!', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Set the location of the Facebook PHP SDK - this should point to directory containing autoload.php | |
define( 'FACEBOOK_SDK_V4_SRC_DIR', './Facebook/' ); | |
// include required files from Facebook SDK | |
require_once( 'Facebook/autoload.php' ); | |
// start the session | |
session_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Set the location of the Facebook PHP SDK - this should point to directory containing autoload.php | |
define( 'FACEBOOK_SDK_V4_SRC_DIR', './Facebook/' ); | |
// include required files from Facebook SDK | |
require_once( 'Facebook/autoload.php' ); | |
// start the session | |
session_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Template Name: Login Page AA */ ?> | |
<?php get_header(); ?> | |
<!-- section --> | |
<section class="aa_loginForm"> | |
<?php global $user_login; | |
if(isset($_GET['login']) && $_GET['login'] == 'failed') | |
{ |
OlderNewer