<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
<title></title>
<link rel="stylesheet" href="https://code.ionicframework.com/1.3.2/css/ionic.min.css" />
<link rel="stylesheet" href="style.css" />
<script src="https://code.ionicframework.com/1.3.2/js/ionic.bundle.min.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<script src="app.js"></script>
<script src="controllers.js"></script>
</head>
<body ng-app="starter">
<ion-nav-view></ion-nav-view>
</body>
</html>
/* Styles go here */
// Ionic Starter App, v0.9.20
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic', 'starter.controllers'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('app', {
url: "/app",
abstract: true,
templateUrl: "menu.html",
controller: 'AppCtrl'
})
.state('app.search', {
url: "/search",
views: {
'menuContent' :{
templateUrl: "search.html"
}
}
})
.state('app.browse', {
url: "/browse",
views: {
'menuContent' :{
templateUrl: "browse.html"
}
}
})
.state('app.WithScroll', {
url: "/with-scroll",
views: {
'menuContent' :{
templateUrl: "with.html",
controller: 'WithScrollCtrl'
}
}
})
.state('app.WithoutScroll', {
url: "/without-scroll",
views: {
'menuContent' :{
templateUrl: "without.html",
controller: 'WithoutScrollCtrl'
}
}
});
// if none of the above states are matched, use this as the fallback
$urlRouterProvider.otherwise('/app/with-scroll');
});
This is a side menu ionic framework starter template.
https://github.com/driftyco/ionic-starter-sidemenu
<ion-view title="Browse">
<ion-nav-buttons side="left">
<button menu-toggle="left"class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
<ion-content class="has-header">
<h1>Browse</h1>
</ion-content>
</ion-view>
<ion-side-menus>
<ion-pane ion-side-menu-content>
<ion-nav-bar class="bar-stable">
</ion-nav-bar>
<ion-nav-view name="menuContent" animation="slide-left-right"></ion-nav-view>
</ion-pane>
<ion-side-menu side="left">
<header class="bar bar-header bar-stable">
<h1 class="title">Left</h1>
</header>
<ion-content class="has-header" drag-content="false">
<ion-list>
<ion-item nav-clear menu-close href="#/app/with-scroll">
With Scroll
</ion-item>
<ion-item nav-clear menu-close href="#/app/without-scroll">
Without Scroll
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
<ion-view title="Without Scroll">
<ion-content class="has-header" scroll="false">
<h3>on iPad, dragging the seek control on an html5 video works ONLY when setting ion-content attribute scroll="false"</h3>
<h4><a href="#/app/with-scroll">go here</a> to see it fail with default scroll setting</h4>
<video controls="true" >
<source src="https://uw-cms-local.s3.amazonaws.com/video/58891818b0f4580e1aa552a2.mp4" />
Your browser does not support the video tag.
</video>
</ion-content>
</ion-view>
<ion-view title="With Scroll">
<ion-nav-buttons side="left">
</ion-nav-buttons>
<ion-content class="has-header">
<h3>on iPad, dragging the seek control on an html5 video does not work</h3>
<h4><a href="#/app/without-scroll">go here</a> to see it work with scroll="false"</h4>
<video controls="true" >
<source src="https://uw-cms-local.s3.amazonaws.com/video/58891818b0f4580e1aa552a2.mp4" />
Your browser does not support the video tag.
</video>
<ion-list>
<ion-item ng-repeat="playlist in playlists" href="#/app/playlists/{{playlist.id}}">
{{playlist.title}}
</ion-item>
</ion-list>
</ion-content>
</ion-view>
<ion-view title="Search">
<ion-nav-buttons side="left">
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
<ion-content class="has-header">
<h1>Search</h1>
</ion-content>
</ion-view>
angular.module('starter.controllers', [])
.controller('AppCtrl', function($scope) {
})
.controller('WithScrollCtrl', function($scope) {
$scope.playlists = [
{ title: 'Reggae', id: 1 },
{ title: 'Chill', id: 2 },
{ title: 'Dubstep', id: 3 },
{ title: 'Indie', id: 4 },
{ title: 'Rap', id: 5 },
{ title: 'Cowbell', id: 6 }
];
})
.controller('WithoutScrollCtrl', function($scope, $stateParams) {
})