Some vanilla equivalents to jQuery methods.
jQuery:
| #import "YMNViewController.h" | |
| NSString *const Text = @"The iOS Developer Program provides a complete and integrated process for developing and distributing iOS apps on the App Store. Learn more"; | |
| NSString *const LinkText = @"Learn more"; | |
| @interface YMNViewController () | |
| @property (nonatomic, strong) UITextView *textView; | |
| @property (nonatomic, strong) UITapGestureRecognizer *tapGesture; |
| gulp = require 'gulp' | |
| browserify = require 'browserify' | |
| watchify = require 'watchify' | |
| source = require 'vinyl-source-stream' | |
| colors = require 'colors' | |
| files = [ | |
| { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Angular JS</title> | |
| </head> | |
| <body ng-app="jsbin"> | |
| <div ng-controller="DemoCtrl as demo"> | |
| <h1>Hello {{demo.name}}</h1> | |
| </div> |
| // put this in your AppDelegate | |
| - (void)changeRootViewController:(UIViewController*)viewController { | |
| if (!self.window.rootViewController) { | |
| self.window.rootViewController = viewController; | |
| return; | |
| } | |
| UIView *snapShot = [self.window snapshotViewAfterScreenUpdates:YES]; | |
| [viewController.view addSubview:snapShot]; | |
| self.window.rootViewController = viewController; |
| var source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var watchify = require('watchify'); | |
| var notify = require("gulp-notify"); | |
| var scriptsDir = './scripts'; | |
| var buildDir = './build'; |
| {{ $page := 10 }} | |
| {{ $count := 20 }} | |
| {{ $url := "/users?page=%v" }} | |
| <ul class="pagination" role="navigation" aria-label="Pagination"> | |
| {{ if gt $page 1 }} | |
| <li class="pagination-previous"><a href="{{ printf $url 1 }}" aria-label="Previous page"></a></li> | |
| {{ else }} | |
| <li class="pagination-previous disabled"></li> | |
| {{ end }} |
| // Key sections of code for this implementation are placed below | |
| @interface JSTableWithFixedHeaderViewController () | |
| @property (strong, nonatomic) UIView *fixedHeaderView; | |
| @end | |
| @implementation JSTableWithFixedHeaderViewController |