Skip to content

Instantly share code, notes, and snippets.

View andreymakaroff's full-sized avatar

Andrii MakaroFF andreymakaroff

View GitHub Profile

Microsoft 70-480 Exam Study Guide

Programming in HTML5 with JavaScript and CSS3

Table of Contents

Intro

componentDidMount() {
this.subs = [
this.props.navigation.addListener('didFocus', () => this.didFocus()),
this.props.navigation.addListener('willBlur', () => this.willBlur()),
];
}
componentWillUnmount() {
this.subs.forEach(sub => sub.remove());
this.willBlur();
}
import {AsyncStorage, Alert} from 'react-native';
import axios from 'axios';
import _ from 'lodash';
import {StackActions, NavigationActions} from 'react-navigation';
import {navigatorRef} from '../../App';
import {CHOICE_PLAN_SCREEN, AUTHGSCREEN} from '../../navigation/navConstants';
import {LINKS} from './apiConstants';
const SUBSCRIPTION_ERROR = 'Subscription error';
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;
$(document).ready(function() {
function heightDetect() {
$(".main_head").css("height", $(window).height());
};
heightDetect()
$(window).resize(function() {
heightDetect();
});
});