A bookmarklet for replacing biologically essentialist language with inclusive language.
- Create a new bookmark on your browser's bookmarks bar.
- Right-click on it and select
Edit.
A bookmarklet for replacing biologically essentialist language with inclusive language.
Edit.| My mobile app needs to log in to Moodle to get Json data from a webservice and display it using Angular. | |
| In order to do that, I need to pass in a username and password and get a Moodle webservice token back, so my app doesn't need to log in again (at least until the token expires). |
| <!--Step 1. Put the required script tags in your HTML--> | |
| <script src="scripts/angular.min.js"></script> | |
| <script src="scripts/ui-bootstrap.js"></script> | |
| <script src="scripts/ui-bootstrap-tpls.min.js"></script> | |
| <!--angular.min.js is the main Angular library; ui-bootstrap.js is the Angular UI bootstrap library; ui-bootstrap-tpls.min.js is the Angular templating script to make the modal template display properly.--> | |
| <!--Step 2. Put the modal template in your HTML, inside your ng-app div--> |
| <!--Step 4. create ng-app instance in html (in index.html of your mobile app)--> | |
| <body> | |
| <div class="overlay"> </div> | |
| <div data-role="page" id="welcome-page"> | |
| <div data-role="header" class="header"> | |
| <h1 id="app-title"> | |
| App title | |
| </h1> | |
| </div> |
| var myApp = angular.module('myApp', ['ui.bootstrap']); | |
| /* main controller - items */ | |
| myApp.controller('itemsCtrl', function ($scope, $rootScope, $http, $uibModal) { | |
| //wrap $http.get request in a function | |
| $scope.loadMyData = function () { | |
| url = '<your_server>'; | |
| $http.get(url).then(function (response) { | |
| $scope.items = response.data; |