Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/askdragao.com/wp-content/plugins/sportspress/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/askdragao.com/wp-content/plugins/sportspress/assets/js/admin/equationbuilder.js
jQuery( document ).ready(
	function($){
		$( "#title" ).keyup(
			function() {
				val = $( this ).val();
				if ( val == '' ) {
					val = 'f(x)';
				}
				$( ".sp-equation-variable" ).text( val + ' =' );
			}
		);

		$( ".sp-equation-parts .button" ).draggable(
			{
				appendTo: "body",
				helper: "clone",
				cursor: "move",
				distance: 10,
				containment: "#sp_equationdiv",
			}
		).click(
			function() {
				$( "<label class='button'></label>" ).text( $( this ).text() ).append( "<span class='remove'>&times;</span><input name='sp_equation[]' type='hidden' value='" + $( this ).data( "variable" ) + "'>" ).appendTo( $( ".sp-equation-formula" ) );
			}
		);

		$( ".sp-equation" ).droppable(
			{
				activeClass: "ui-state-active",
				hoverClass: "ui-state-hover",
				accept: ".button:not(.ui-sortable-helper)",
				drop: function( event, ui ) {
					$( "<label class='button'></label>" ).text( ui.draggable.text() ).append( "<span class='remove'>&times;</span><input name='sp_equation[]' type='hidden' value='" + ui.draggable.data( "variable" ) + "'>" ).appendTo( $( ".sp-equation-formula" ) );
				}
			}
		).sortable(
			{
				items: ".button",
				tolerance: "pointer",
				containment: "#sp_equationdiv",
				sort: function() {
					$( this ).removeClass( "ui-state-active" );
				}
			}
		);

		$( ".sp-equation-formula" ).on(
			"click",
			".button .remove",
			function() {
				$( this ).closest( ".button" ).remove();
			}
		);
	}
);

ZeroDay Forums Mini