You can simply attach backgroung with CSS to layer below, that when iframe will be ready it will overlap your backgroung with spinner
| require 'irb/completion' | |
| # History | |
| #require 'irb/ext/save-history' #wirble does history | |
| IRB.conf[:PROMPT_MODE] = :SIMPLE | |
| IRB.conf[:SAVE_HISTORY] = 100 | |
| IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" | |
| IRB.conf[:AUTO_INDENT] = true | |
| # use HIRB if available |
| module Account | |
| module Payments | |
| class PesapalController < ApplicationController | |
| # GET /account/payments/pesapal/new | |
| def new | |
| # Configure transaction details | |
| pesapal = Pesapal::Merchant.new | |
| pesapal.order_details = { | |
| amount: '<AMOUNT>', | |
| description: '<DESCRIPTION>', |
| # /lib/yourapp/possessive.rb | |
| module Yourapp | |
| module Possessive | |
| # Returns a possessive form of a string | |
| def possessive | |
| return self if self.empty? | |
| self + ('s' == self[-1, 1] ? "'" : "'" + 's') | |
| end | |
| end |
| Annotator.Plugin.Example = function (element, options) { | |
| var myPlugin = {}; | |
| myPlugin.pluginInit = function () { | |
| // This annotator instance | |
| this.annotator | |
| // LOADING | |
| .subscribe("annotationsLoaded", function (annotations) { | |
| console.log("annotationsLoaded called when the annotations have been loaded."); | |
| console.log(annotations); |
| # Could be in lib/tasks/disable_db_tasks_on_production.rake | |
| # See original http://www.developingandstuff.com/2014/06/disable-dangerous-rake-tasks-in.html | |
| DISABLED_TASKS = [ | |
| 'db:drop', | |
| 'db:migrate:reset', | |
| 'db:schema:load', | |
| 'db:seed', | |
| # ... | |
| ] |
| # As used with CanCan and Devise | |
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| include ErrorResponseActions | |
| rescue_from CanCan::AccessDenied, :with => :authorization_error | |
| rescue_from ActiveRecord::RecordNotFound, :with => :resource_not_found | |
| before_filter :authenticate! |
| User.find_in_batches do |user_batch| | |
| do_something_complicated(user_batch) | |
| end | |
| def do_something_complicated(users) | |
| users.each do | |
| user.something_complicated | |
| end | |
| end |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "iam:ListInstanceProfiles" | |
| ], | |
| "Sid": "Stmt1381157441000", | |
| "Resource": [ | |
| "arn:aws:iam::123456789012:instance-profile/" |
Replace the Auth options hash value having token: <TOKEN_FOR_TESTING_THAT_LASTS_FOR_A_DAY> with an actual token. This token can be generated by the server side scripts and copied in. It supercedes the tokenUrl: if set.
Just to be 100% sure, feel free to verify the validity of the JSON Web Token generated using jwt.io, JWT debugger. Oh, and the TTL is set to 86400 which is a day. Enough time to generate a token and play around with it.
Ps: If there are any amendments that I can make to improve clarity or fix issues, feel free to leave a comment below. I'll get a notification and act on it as soon as I can.
Ps 2: I was experiencing an issue with CORS and so I submitted the issue (and this code) to the annotator-dev mailing list. Check the July 2014 archives for an email with the subject ... '[annotator-dev] Integrating Site With AnnotateIt Store'.