AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/previous-website/06/media/com_comment/js/v6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/previous-website/06/media/com_comment/js/v6//main.js
var bus = new Vue();
// boot up the App
var demo = new Vue({
	el: '#ccomment',
	store: store,
	data: {
		comments: store.state.comments,
		pagination: store.state.pagination,
		paginationOptions: {}
	},

	created: function () {
		var self = this;
		this.$store.dispatch('fetchComments', this.getQueryHashParam())
			.then(function(){

				if (location.hash.indexOf('#!/ccomment-comment=') === 0) {
					var comment = location.hash.replace('#!/ccomment-comment=', '');

					// We have to wait for the comments to be rendered in the dom
					self.$nextTick(function () {
						jQuery('html, body').animate({
							scrollTop: jQuery('#ccomment-comment-' + comment).offset().top
						}, 200);
					})
				}
			});
	},

	components: {
		'pagination': pagination
	},

	methods: {
		newComment: function() {
			console.log('capture new comment in parent');
		},
		loadData: function () {
			this.$store.dispatch('fetchComments', {start: this.pagination.current_page});
			location.hash = '#!/ccomment-page=' + this.pagination.current_page;

			jQuery('html, body').animate({
				scrollTop: jQuery(".ccomment").offset().top
			}, 200);
		},

		getQueryHashParam: function() {
			if (location.hash.indexOf('#!/ccomment-page=') === 0) {
				return {start: location.hash.replace('#!/ccomment-page=', '')};
			}

			if (location.hash.indexOf('#!/ccomment-comment=') === 0) {
				return {comment: location.hash.replace('#!/ccomment-comment=', '')};
			}
		},
	},

});

Anon7 - 2022
AnonSec Team