This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Checks for general transformation or xml form errors by comparing stats. It is helpful, | |
| * though an error is not always important | |
| */ | |
| FormView.prototype.checkForErrors = function( ) { | |
| var i, | |
| paths = [ ], | |
| total = {}, | |
| $stats = $form.find( '#stats' ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var dpi, printStyleSheet, $printStyleSheetLink; | |
| // make sure setDpi is not called until DOM is ready | |
| $( document ).ready( function() { | |
| setDpi(); | |
| } ); | |
| /** | |
| * Calculates the dots per inch and sets the dpi property | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Converts an indexed-repeat(node, path, position, path, position, etc) to its native XPath | |
| * equivalent using [position() = x] predicates | |
| * | |
| * @param {string} expr the XPath expression | |
| * @return {string} converted XPath expression | |
| */ | |
| FormModel.prototype.convertIndexedRepeatToPositionedPath = function( expr ) { | |
| var indexedRepeats = expr.match( /(indexed-repeat\s?\([^\)]+\))/g ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | "use strict"; | |
| var gith = require( 'gith' ).create( 9001 ), | |
| execFile = require('child_process').execFile; | |
| gith( { | |
| repo: 'enketo/enketo-core' | |
| } ).on( 'all', function( payload ) { | |
| console.log( 'Post-receive happened' ); | |
| if ( payload.branch === 'master' ) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo find ./core -type f -name '*.wsp' -exec ./whisper-resize.py --nobackup {} 1h:1d 1d:5y 7d:10y \; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | server { | |
| listen 80; | |
| server_name odk.enke.to; | |
| return 307 https://$server_name$request_uri; | |
| } | |
| server { | |
| listen 443; | |
| ssl on; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Vagrant.configure("2") do |config| | |
| config.vm.box = "trusty" | |
| config.vm.box_url = "ubuntu/trusty64" | |
| config.vm.provision "shell", inline: <<-SHELL | |
| curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash - | |
| apt-get install -y git build-essential nodejs | |
| npm explore npm -g -- npm install node-gyp@latest | |
| npm install libxslt | |
| SHELL | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | list: | |
| * a | |
| + b | |
| - c | |
| list: | |
| * a | |
| + b | |
| - c | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <ol> | |
| <li>Add image file to input</li> | |
| <li>Confirm image preview is shown to verify that blob is succesfully saved in indexedDB and can be retrieved</li> | |
| <li>Refresh page, confirm image preview is still shown</li> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <ol> | |
| <li>Image preview is shown to verify that blob is succesfully saved in indexedDB and can be retrieved</li> | |
| <li>Refresh page, confirm image preview is still shown</li> | |
| <li>Load or refresh page a few hours, or a day, later: Image can still be retrieved from store, is blob, has file size, but cannot be shown any more (404). See console.</li> |