-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
4,646 additions
and
5,426 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
body.wpt_maximize { | ||
overflow: hidden; | ||
} | ||
|
||
body.wpt_maximize #wpadminbar, body.wpt_maximize #postdivrich, body.wpt_maximize #adminmenumain { | ||
display: none; | ||
} | ||
|
||
body.wpt_maximize .wpt_maximizable .wpt_scroll { | ||
overflow: scroll; | ||
} | ||
|
||
body.wpt_maximize .wpt_maximizable.wpt_maximized .wpt_scroll { | ||
overflow: visible; | ||
max-height: none; | ||
} | ||
|
||
body.wpt_maximize .wpt_maximized { | ||
position: fixed; | ||
width: 100%; | ||
height: 100%; | ||
left: 0; | ||
top: 0; | ||
z-index: 99; | ||
overflow: auto; | ||
} | ||
|
||
.wpt_maximizable .qt-dfw { | ||
position: static; | ||
} | ||
|
||
/* Old WP versions */ | ||
.wpt_maximizable .wp_themeSkin { | ||
padding: 0px; | ||
background: none; | ||
border: none; | ||
outline: none; | ||
} | ||
.wpt_maximizable .wp_themeSkin .mceIcon { | ||
margin: auto; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SELECT | ||
q.*, | ||
a.*, | ||
s.* | ||
FROM | ||
wp_t_scores s | ||
JOIN | ||
wp_t_answers a USING (answer_id) | ||
JOIN | ||
wp_t_questions q USING (question_id) | ||
WHERE | ||
q.test_id = 8; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function(angular) { | ||
'use strict'; | ||
|
||
angular.module('wptApp', ['digestHud']) | ||
.config(function(digestHudProvider) { | ||
digestHudProvider.enable(); | ||
digestHudProvider.setHudPosition('bottom right'); | ||
}); | ||
})(angular); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(function appModule(angular, webshims, document) { | ||
'use strict'; | ||
|
||
webshims.polyfill('es5'); | ||
|
||
angular.module('wptApp', [ | ||
]); | ||
})(angular, webshims, document); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(function appModuleRun(angular) { | ||
angular.bootstrap('.wptApp', ['wptApp']); | ||
})(angular); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
(function(angular) { | ||
'use strict'; | ||
|
||
angular.module('wptApp').factory('BaseCollection', BaseCollectionFactory); | ||
|
||
BaseCollectionFactory.$inject = ['BaseObservable']; | ||
function BaseCollectionFactory(BaseObservable) { | ||
function BaseCollection() { | ||
}; | ||
BaseCollection.prototype = angular.extend({}, BaseObservable.prototype); | ||
|
||
var arraySlice = Array.prototype.slice; | ||
BaseCollection.fromArrayGenerator = function(thisClass) { | ||
thisClass.prototype.slice = function(begin, end) { | ||
var copy = angular.extend([], thisClass.prototype, new thisClass); | ||
arraySlice.call(this, begin, end).forEach(function(item) { | ||
this.push(item); | ||
}, copy); | ||
return copy; | ||
}; | ||
|
||
return function(items) { | ||
var me = angular.extend([], thisClass.prototype, new thisClass); | ||
if (typeof items === 'undefined') { | ||
return me; | ||
} | ||
items.forEach(function(item) { | ||
this.push(this.createFromObject(item)); | ||
}, me); | ||
return me; | ||
}; | ||
}; | ||
BaseCollection.prototype.create = function(title) { | ||
throw new Error('BaseCollection create not implemented'); | ||
}; | ||
BaseCollection.prototype.createFromObject = function(object) { | ||
return angular.extend(this.create(), object); | ||
}; | ||
BaseCollection.prototype.addNew = function() { | ||
var item = this.create.apply(this, arguments); | ||
return this.add(item); | ||
}; | ||
BaseCollection.prototype.add = function(item) { | ||
this.push(item); | ||
this.trigger('add:item', item); | ||
return item; | ||
}; | ||
BaseCollection.prototype.forEachLive = function(callback) { | ||
this.forEach(callback); | ||
this.on('add:item', function(item) { | ||
callback.call(item, item, this.length); | ||
}); | ||
}; | ||
BaseCollection.prototype.remove = function($index) { | ||
var item = this[$index]; | ||
item.trigger('remove', $index); | ||
this.trigger('remove:item', item, $index); | ||
this.splice($index, 1); | ||
return this; | ||
}; | ||
/** | ||
* Implement null-object getter | ||
* @param {Number} $index | ||
* @return {Item} | ||
*/ | ||
BaseCollection.prototype.getOrNull = function($index) { | ||
var item = this[$index]; | ||
if (typeof item === 'undefined') { | ||
return this.createFromObject({}); | ||
} | ||
return item; | ||
}; | ||
BaseCollection.prototype.copy = function() { | ||
var copy = this.fromArray([]); | ||
this.forEach(function(item) { | ||
copy.add(item.copy()); | ||
}); | ||
return copy; | ||
}; | ||
return BaseCollection; | ||
}; | ||
})(angular); |
Oops, something went wrong.