A basic example on how to show fullscreen images (if possible) within a modal using a slide box
Forked from Roberto De la Fuente O.'s Pen Ionic Modal + Slide Box - Fullscreen images.
A Pen by Michael Frohberg on CodePen.
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| /** @jsx React.DOM */ | |
| 'use strict'; | |
| var React = require('react'); | |
| var MasonryMixin = require('./react-masonry-mixin.js'); | |
| var masonryOptions = { | |
| transitionDuration: 0 |
| # First: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| #go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
A basic example on how to show fullscreen images (if possible) within a modal using a slide box
Forked from Roberto De la Fuente O.'s Pen Ionic Modal + Slide Box - Fullscreen images.
A Pen by Michael Frohberg on CodePen.
| app.directive('dynamicHeight', function() { | |
| return { | |
| require: ['^ionSlideBox'], | |
| link: function(scope, elem, attrs, slider) { | |
| scope.$watch(function() { | |
| return slider[0].__slider.selected(); | |
| }, function(val) { | |
| //getting the heigh of the container that has the height of the viewport | |
| var newHeight = window.getComputedStyle(elem.parent()[0], null).getPropertyValue("height"); | |
| if (newHeight) { |
| var util = require('util'), | |
| EventEmitter = require('events').EventEmitter; | |
| var MyClass = function () { | |
| if (!(this instanceof MyClass)) return new MyClass(); | |
| EventEmitter.call(this); | |
| }; |
| /** | |
| * http://applemusic.tumblr.com/ | |
| */ | |
| /** Ultra Light */ | |
| @font-face { | |
| font-family: "San Francisco"; | |
| font-weight: 100; | |
| src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2"); | |
| } |
| var app = angular.module('app', []); | |
| app.controller("ListagemController", function($scope){ | |
| $scope.itens = []; | |
| for (var i = 1; i <= 16; i++) { | |
| $scope.itens.push({text: i}); | |
| }; | |
| }) |
| 'use strict'; | |
| /** | |
| * services.cordova Module | |
| * | |
| * General Cordova services module | |
| */ | |
| angular.module('bili.services.cordova') |
| var myApp = angular.module('myApp').service('CordovaNetwork', ['$ionicPlatform', '$q', function($ionicPlatform, $q) { | |
| // Get Cordova's global Connection object or emulate a smilar one | |
| var Connection = window.Connection || { | |
| "CELL" : "cellular", | |
| "CELL_2G" : "2g", | |
| "CELL_3G" : "3g", | |
| "CELL_4G" : "4g", | |
| "ETHERNET" : "ethernet", | |
| "NONE" : "none", | |
| "UNKNOWN" : "unknown", |