Initial import of Recruitment-HC source code
This commit is contained in:
commit
9107ffb158
18456 files changed
+2881918
No files matched your search
@@ -0,0 +1,9 @@
|
||||
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
|
||||
@import url('../../../dist/css/bootstrap-datepicker3.min.css');
|
||||
|
||||
body {
|
||||
/* Padding around all elements to allow space for screenshots */
|
||||
padding: 10px;
|
||||
/* Transparent background for PNG screenshots */
|
||||
background: none;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
document.write("<script src='https://code.jquery.com/jquery-3.1.1.min.js'></script>");
|
||||
document.write("<script src='../../js/bootstrap-datepicker.js'></script>");
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Usage: $ phantomjs --remote-debugger-port=9001 --remote-debugger-autorun=yes debug.js page.html
|
||||
|
||||
Open Chrome tab to http://localhost:9001/; open second link (ie, path to page.html)
|
||||
*/
|
||||
var system = require('system' ), fs = require('fs'), webpage = require('webpage');
|
||||
|
||||
(function(phantom){
|
||||
var page=webpage.create();
|
||||
|
||||
function debugPage(){
|
||||
console.log("Refresh a second debugger-port page and open a second webkit inspector for the target page.");
|
||||
console.log("Letting this page continue will then trigger a break in the target page.");
|
||||
debugger; // pause here in first web browser tab for steps 5 & 6
|
||||
page.open(system.args[1]);
|
||||
page.evaluateAsync(function() {
|
||||
debugger; // step 7 will wait here in the second web browser tab
|
||||
});
|
||||
}
|
||||
debugPage();
|
||||
}(phantom));
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// Copyright (c) 2012 The Polymer Authors. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
window.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr),c=function(a,b){this.cache={},this.onload=a,this.oncomplete=b,this.inflight=0,this.pending={}};c.prototype={addNodes:function(a){this.inflight+=a.length,d(a,this.require,this),this.checkDone()},require:function(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},dedupe:function(a,b){return this.pending[a]?(this.pending[a].push(b),!0):this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(this.pending[a]=[b],!1)},fetch:function(a,c){var d=function(b,d){this.receive(a,c,b,d)}.bind(this);b.load(a,d)},receive:function(a,b,c,d){c||(this.cache[a]=d),this.pending[a].forEach(function(b){c||this.onload(a,b,d),this.tail()},this),this.pending[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){var f=new XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.async),f.addEventListener("readystatechange",function(){4===f.readyState&&d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}),f.send(),f},loadDocument:function(a,b,c){this.load(a,b,c).responseType="document"}};var d=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.xhr=b,a.Loader=c}(window.HTMLImports),function(a){function b(a){return c(a,j)}function c(a,b){return"link"===a.localName&&a.getAttribute("rel")===b}function d(a){return"script"===a.localName}function e(a,b){var c=a;c instanceof Document||(c=document.implementation.createHTMLDocument(j)),c._URL=b;var d=c.createElement("base");return d.setAttribute("href",b),c.baseURI||(c.baseURI=b),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}function f(a,b){function c(){k==l&&requestAnimationFrame(a)}function d(){k++,c()}b=b||o;var e=HTMLImports.isIE?"complete":"interactive",h="complete"===b.readyState||b.readyState===e;if(!h){var i=function(){("complete"===b.readyState||b.readyState===e)&&(b.removeEventListener("readystatechange",i),f(a,b))};return void b.addEventListener("readystatechange",i)}var j=b.querySelectorAll("link[rel=import]"),k=0,l=j.length;if(l)for(var m,n=0;l>n&&(m=j[n]);n++)g(m)?d.call(m):(m.addEventListener("load",d),m.addEventListener("error",d));else c()}function g(a){return i?a.import&&"loading"!==a.import.readyState:a.__importParsed}var h="import"in document.createElement("link"),i=!a.flags.imports&&h,j="import";if(!i){{var k,l=a.Loader,m=(a.xhr,"stylesheet"),n={documents:{},cache:{},preloadSelectors:["link[rel="+j+"]","template","script[src]:not([type])",'script[src][type="text/javascript"]'].join(","),loader:function(a){if(k&&k.inflight){var b=k.oncomplete;return k.oncomplete=function(){b(),a()},k}return k=new l(n.loaded,a),k.cache=n.cache,k},load:function(a,b){k=n.loader(b),n.preload(a)},preload:function(a){var b=this.marshalNodes(a);k.addNodes(b)},marshalNodes:function(a){var b=a.querySelectorAll(n.preloadSelectors);return b=this.filterMainDocumentNodes(a,b),b=this.extractTemplateNodes(b)},filterMainDocumentNodes:function(a,b){return a===document&&(b=Array.prototype.filter.call(b,function(a){return!d(a)})),b},extractTemplateNodes:function(a){var b=[];return a=Array.prototype.filter.call(a,function(a){if("template"===a.localName){if(a.content){var c=a.content.querySelectorAll("link[rel="+m+"]");c.length&&(b=b.concat(Array.prototype.slice.call(c,0)))}return!1}return!0}),b.length&&(a=a.concat(b)),a},loaded:function(a,c,d){if(b(c)){var f=n.documents[a];f||(f=e(d,a),n.documents[a]=f,n.preload(f)),c.import=c.content=d=f}c.__resource=d}};Array.prototype.forEach.call.bind(Array.prototype.forEach)}a.importer=n}var o=window.ShadowDOMPolyfill?wrap(document):document;Object.defineProperty(o,"_currentScript",{get:function(){return HTMLImports.currentScript||o.currentScript},writeable:!0,configurable:!0}),a.hasNative=h,a.useNative=i,a.whenImportsReady=f,a.IMPORT_LINK_TYPE=j,a.isImportLoaded=g}(window.HTMLImports),function(a){function b(a){var b=a.ownerDocument.createElement("style");return b.textContent=a.textContent,g.resolveUrlsInStyle(b),b}function c(a,b){this.doc=a,this.doc.__loadTracker=this,this.callback=b}function d(a){return"link"===a.localName&&a.getAttribute("rel")===h}function e(a){return a.parentNode&&!f(a)}function f(a){return a.ownerDocument===document||a.ownerDocument.impl===document}var g=a.path,h="import",i=/Trident/.test(navigator.userAgent),j={selectors:["link[rel="+h+"]","link[rel=stylesheet]","style","script:not([type])",'script[type="text/javascript"]'],map:{link:"parseLink",script:"parseScript",style:"parseStyle"},parse:function(a,b){if(a.__importParsed)b&&b();else{a.__importParsed=!0;for(var d,e=new c(a,b),f=a.querySelectorAll(j.selectors),g=a.scripts?a.scripts.length:0,h=0;h<f.length&&(d=f[h]);h++)j[j.map[d.localName]](d),a.scripts&&g!==aLine truncated
|
||||
//# sourceMappingURL=html-imports.min.map
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
/* jshint phantom:true, devel:true */
|
||||
/* Usage: phantomjs screenshot.js in.html out.png */
|
||||
|
||||
var sys = require('system'),
|
||||
page = new WebPage();
|
||||
page.viewportSize = {
|
||||
width: 800,
|
||||
height: 600
|
||||
};
|
||||
|
||||
page.open(sys.args[1], function(status){
|
||||
if (status !== 'success'){
|
||||
console.log('Bad status: %s', status);
|
||||
phantom.exit(1);
|
||||
}
|
||||
window.setTimeout(function(){
|
||||
var box = page.evaluate(function(){
|
||||
var lefts, rights, tops, bottoms,
|
||||
padding = 10, // px
|
||||
selection, show;
|
||||
|
||||
// Call setup method
|
||||
if (window.setup)
|
||||
window.setup();
|
||||
// Show all pickers, or only those marked for showing
|
||||
show = $('body').data('show');
|
||||
show = show ? $(show) : $('*');
|
||||
show
|
||||
.filter(function(){
|
||||
return 'datepicker' in $(this).data();
|
||||
})
|
||||
.datepicker('show');
|
||||
|
||||
// Get bounds of selected elements
|
||||
selection = $($('body').data('capture'));
|
||||
tops = selection.map(function(){
|
||||
return $(this).offset().top;
|
||||
}).toArray();
|
||||
lefts = selection.map(function(){
|
||||
return $(this).offset().left;
|
||||
}).toArray();
|
||||
bottoms = selection.map(function(){
|
||||
return $(this).offset().top + $(this).outerHeight();
|
||||
}).toArray();
|
||||
rights = selection.map(function(){
|
||||
return $(this).offset().left + $(this).outerWidth();
|
||||
}).toArray();
|
||||
|
||||
// Convert bounds to single bounding box
|
||||
var b = {
|
||||
top: Math.min.apply(Math, tops),
|
||||
left: Math.min.apply(Math, lefts)
|
||||
};
|
||||
b.width = Math.max.apply(Math, rights) - b.left;
|
||||
b.height = Math.max.apply(Math, bottoms) - b.top;
|
||||
|
||||
// Return bounding box
|
||||
return {
|
||||
top: Math.max(b.top - padding, 0),
|
||||
left: Math.max(b.left - padding, 0),
|
||||
width: b.width + 2 * padding,
|
||||
height: b.height + 2 * padding
|
||||
};
|
||||
});
|
||||
page.clipRect = box;
|
||||
page.render(sys.args[2]);
|
||||
phantom.exit();
|
||||
}, 1);
|
||||
});
|
||||
Reference in new issue
Block a user