golden hour
/home/doctorbruno/public_html/siddharastrology.com/wp-includes/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin-bar.js
10.4 KB
Del
OK
admin-bar.min.js
3.41 KB
Del
OK
api-request.js
4.98 KB
Del
OK
api-request.min.js
1023 B
Del
OK
autosave.js
22.24 KB
Del
OK
autosave.min.js
5.67 KB
Del
OK
backbone.js
78.55 KB
Del
OK
backbone.min.js
23.74 KB
Del
OK
clipboard.js
26.18 KB
Del
OK
clipboard.min.js
8.8 KB
Del
OK
codemirror
-
Del
OK
colorpicker.js
28.4 KB
Del
OK
colorpicker.min.js
16.11 KB
Del
OK
comment-reply.js
12.34 KB
Del
OK
comment-reply.min.js
2.88 KB
Del
OK
crop
-
Del
OK
customize-base.js
29.25 KB
Del
OK
customize-base.min.js
7.5 KB
Del
OK
customize-loader.js
8.4 KB
Del
OK
customize-loader.min.js
3.47 KB
Del
OK
customize-models.js
8.41 KB
Del
OK
customize-models.min.js
3.59 KB
Del
OK
customize-preview-nav-menus.js
16.3 KB
Del
OK
customize-preview-nav-menus.min.js
4.92 KB
Del
OK
customize-preview-widgets.js
22.74 KB
Del
OK
customize-preview-widgets.min.js
7.64 KB
Del
OK
customize-preview.js
28.7 KB
Del
OK
customize-preview.min.js
10.73 KB
Del
OK
customize-selective-refresh.js
34.22 KB
Del
OK
customize-selective-refresh.min.js
10.44 KB
Del
OK
customize-views.js
6.83 KB
Del
OK
customize-views.min.js
2.52 KB
Del
OK
dist
-
Del
OK
heartbeat.js
23.87 KB
Del
OK
heartbeat.min.js
5.81 KB
Del
OK
hoverIntent.js
7.06 KB
Del
OK
hoverIntent.min.js
1.46 KB
Del
OK
hoverintent-js.min.js
1.68 KB
Del
OK
imagesloaded.min.js
5.39 KB
Del
OK
imgareaselect
-
Del
OK
jcrop
-
Del
OK
jquery
-
Del
OK
json2.js
31 B
Del
OK
json2.min.js
35 B
Del
OK
masonry.min.js
23.57 KB
Del
OK
mce-view.js
26.19 KB
Del
OK
mce-view.min.js
9.54 KB
Del
OK
media-audiovideo.js
25.18 KB
Del
OK
media-audiovideo.min.js
11.77 KB
Del
OK
media-editor.js
29.75 KB
Del
OK
media-editor.min.js
10.83 KB
Del
OK
media-grid.js
27.93 KB
Del
OK
media-grid.min.js
13.37 KB
Del
OK
media-models.js
48.24 KB
Del
OK
media-models.min.js
13.03 KB
Del
OK
media-views.js
281.76 KB
Del
OK
media-views.min.js
108.27 KB
Del
OK
mediaelement
-
Del
OK
plupload
-
Del
OK
quicktags.js
23.16 KB
Del
OK
quicktags.min.js
10.87 KB
Del
OK
shortcode.js
10.51 KB
Del
OK
shortcode.min.js
2.58 KB
Del
OK
swfobject.js
0 B
Del
OK
swfobject.min.js
35 B
Del
OK
swfupload
-
Del
OK
thickbox
-
Del
OK
tinymce
-
Del
OK
tw-sack.js
4.85 KB
Del
OK
tw-sack.min.js
3.21 KB
Del
OK
twemoji.js
36.31 KB
Del
OK
twemoji.min.js
19.38 KB
Del
OK
underscore.js
67.26 KB
Del
OK
underscore.min.js
18.57 KB
Del
OK
utils.js
6.17 KB
Del
OK
utils.min.js
1.82 KB
Del
OK
wp-ajax-response.js
3.81 KB
Del
OK
wp-ajax-response.min.js
2.51 KB
Del
OK
wp-api.js
49.73 KB
Del
OK
wp-api.min.js
14.34 KB
Del
OK
wp-auth-check.js
4.4 KB
Del
OK
wp-auth-check.min.js
1.65 KB
Del
OK
wp-backbone.js
14.89 KB
Del
OK
wp-backbone.min.js
2.97 KB
Del
OK
wp-custom-header.js
10.7 KB
Del
OK
wp-custom-header.min.js
4.34 KB
Del
OK
wp-embed-template.js
7.91 KB
Del
OK
wp-embed-template.min.js
3.07 KB
Del
OK
wp-embed.js
3.34 KB
Del
OK
wp-embed.min.js
1.22 KB
Del
OK
wp-emoji-loader.js
13.61 KB
Del
OK
wp-emoji-loader.min.js
2.91 KB
Del
OK
wp-emoji-release.min.js
22.22 KB
Del
OK
wp-emoji.js
8.68 KB
Del
OK
wp-emoji.min.js
2.79 KB
Del
OK
wp-list-revisions.js
1.08 KB
Del
OK
wp-list-revisions.min.js
597 B
Del
OK
wp-lists.js
24.7 KB
Del
OK
wp-lists.min.js
7.34 KB
Del
OK
wp-pointer.js
10.03 KB
Del
OK
wp-pointer.min.js
3.54 KB
Del
OK
wp-sanitize.js
1.62 KB
Del
OK
wp-sanitize.min.js
402 B
Del
OK
wp-tooltip.js
1.8 KB
Del
OK
wp-tooltip.min.js
643 B
Del
OK
wp-util.js
4.58 KB
Del
OK
wp-util.min.js
1.4 KB
Del
OK
wpdialog.js
569 B
Del
OK
wpdialog.min.js
281 B
Del
OK
wplink.js
21.1 KB
Del
OK
wplink.min.js
11.05 KB
Del
OK
zxcvbn-async.js
821 B
Del
OK
zxcvbn-async.min.js
351 B
Del
OK
zxcvbn.min.js
802.97 KB
Del
OK
Edit: customize-views.js
/** * @output wp-includes/js/customize-views.js */ /** * The WordPress Customizer views API. * * @param {JQueryStatic} $ The jQuery object. * @param {Object} wp The WordPress global object. * @param {_.UnderscoreStatic} _ The Underscore.js object. */ (function( $, wp, _ ) { if ( ! wp || ! wp.customize ) { return; } var api = wp.customize; /** * wp.customize.HeaderTool.CurrentView * * Displays the currently selected header image, or a placeholder in lack * thereof. * * Instantiate with model wp.customize.HeaderTool.currentHeader. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.CurrentView * * @class * @augments wp.Backbone.View */ api.HeaderTool.CurrentView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CurrentView.prototype */{ template: wp.template('header-current'), /** * Initializes the view, rendering it whenever the model changes. */ initialize: function() { this.listenTo(this.model, 'change', this.render); this.render(); }, /** * Renders the currently selected header image. * * @return {wp.customize.HeaderTool.CurrentView} Current view. */ render: function() { this.$el.html(this.template(this.model.toJSON())); this.setButtons(); return this; }, /** * Shows or hides the header's action buttons. */ setButtons: function() { var elements = $('#customize-control-header_image .actions .remove'); var addButton = $('#customize-control-header_image .actions .new'); if (this.model.get('choice')) { elements.show(); addButton.removeClass('upload-button'); } else { elements.hide(); addButton.addClass('upload-button'); } } }); /** * wp.customize.HeaderTool.ChoiceView * * Represents a choosable header image, be it user-uploaded, * theme-suggested or a special Randomize choice. * * Takes a wp.customize.HeaderTool.ImageModel. * * Manually changes model wp.customize.HeaderTool.currentHeader via the * `select` method. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceView * * @class * @augments wp.Backbone.View */ api.HeaderTool.ChoiceView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceView.prototype */{ template: wp.template('header-choice'), className: 'header-view', events: { 'click .choice,.random': 'select', 'click .close': 'removeImage' }, /** * Initializes the view, marking it current when it matches the header image. */ initialize: function() { var properties = [ this.model.get('header').url, this.model.get('choice') ]; this.listenTo(this.model, 'change:selected', this.toggleSelected); if (_.contains(properties, api.get().header_image)) { api.HeaderTool.currentHeader.set(this.extendedModel()); } }, /** * Renders the choice. * * @return {wp.customize.HeaderTool.ChoiceView} Choice view. */ render: function() { this.$el.html(this.template(this.extendedModel())); this.toggleSelected(); return this; }, /** * Toggles the selected class on the choice. */ toggleSelected: function() { this.$el.toggleClass('selected', this.model.get('selected')); }, /** * Returns the model's attributes together with its collection type. * * @return {Object} Extended model. */ extendedModel: function() { var c = this.model.get('collection'); return _.extend(this.model.toJSON(), { type: c.type }); }, /** * Selects the choice as the header image. */ select: function() { this.preventJump(); this.model.save(); api.HeaderTool.currentHeader.set(this.extendedModel()); }, /** * Keeps the sidebar at its current scroll position. */ preventJump: function() { var container = $('.wp-full-overlay-sidebar-content'), scroll = container.scrollTop(); _.defer(function() { container.scrollTop(scroll); }); }, /** * Removes the image from the collection. * * @param {JQuery.Event} e Event. */ removeImage: function(e) { e.stopPropagation(); this.model.destroy(); this.remove(); } }); /** * wp.customize.HeaderTool.ChoiceListView * * A container for ChoiceViews. These choices should be of one same type: * user-uploaded headers or theme-defined ones. * * Takes a wp.customize.HeaderTool.ChoiceList. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceListView * * @class * @augments wp.Backbone.View */ api.HeaderTool.ChoiceListView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceListView.prototype */{ /** * Initializes the view, rendering it as the collection changes. */ initialize: function() { this.listenTo(this.collection, 'add', this.addOne); this.listenTo(this.collection, 'remove', this.render); this.listenTo(this.collection, 'sort', this.render); this.listenTo(this.collection, 'change', this.toggleList); this.render(); }, /** * Renders each choice in the collection. * * @return {wp.customize.HeaderTool.ChoiceListView} Choice list view. */ render: function() { this.$el.empty(); this.collection.each(this.addOne, this); this.toggleList(); return this; }, /** * Renders a single choice into the list. * * @param {Backbone.Model} choice Choice. */ addOne: function(choice) { var view; choice.set({ collection: this.collection }); view = new api.HeaderTool.ChoiceView({ model: choice }); this.$el.append(view.render().el); }, /** * Shows or hides the list title and the random button. */ toggleList: function() { var title = this.$el.parents().prev('.customize-control-title'), randomButton = this.$el.find('.random').parent(); if (this.collection.shouldHideTitle()) { title.add(randomButton).hide(); } else { title.add(randomButton).show(); } } }); /** * wp.customize.HeaderTool.CombinedList * * Aggregates wp.customize.HeaderTool.ChoiceList collections (or any * Backbone object, really) and acts as a bus to feed them events. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.CombinedList * * @class * @augments wp.Backbone.View */ api.HeaderTool.CombinedList = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CombinedList.prototype */{ /** * Initializes the view with the collections to combine. * * @param {Backbone.Collection[]} collections Collections. */ initialize: function(collections) { this.collections = collections; this.on('all', this.propagate, this); }, /** * Passes an event on to each of the combined collections. * * @param {string} event Event. * @param {*} arg Argument. */ propagate: function(event, arg) { _.each(this.collections, function(collection) { collection.trigger(event, arg); }); } }); })( jQuery, window.wp, _ );
Save