Travis GCC option + UI enhancements
This commit is contained in:
		| @@ -2,7 +2,9 @@ | ||||
|  | ||||
| jQuery( document ).ready(function( $ ) { | ||||
|  | ||||
| 	// ==================================== | ||||
| 	// Scroll | ||||
| 	// ==================================== | ||||
|  | ||||
| 	$('a').smoothScroll({ | ||||
| 		speed: 400, | ||||
| @@ -11,7 +13,18 @@ jQuery( document ).ready(function( $ ) { | ||||
|  | ||||
| 	var sticky = new Sticky('.stickyscroll'); | ||||
|  | ||||
| 	// Alerts | ||||
| 	// ==================================== | ||||
| 	// Notifications | ||||
| 	// ==================================== | ||||
|  | ||||
| 	$(window).bind('beforeunload', () => { | ||||
| 		$('#notifload').addClass('active'); | ||||
| 	}); | ||||
| 	$(document).ajaxSend(() => { | ||||
| 		$('#notifload').addClass('active'); | ||||
| 	}).ajaxComplete(() => { | ||||
| 		$('#notifload').removeClass('active'); | ||||
| 	}); | ||||
|  | ||||
| 	var alerts = new Alerts(); | ||||
| 	if(alertsData) { | ||||
| @@ -20,20 +33,29 @@ jQuery( document ).ready(function( $ ) { | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	// Editor | ||||
| 	// ==================================== | ||||
| 	// Markdown Editor | ||||
| 	// ==================================== | ||||
|  | ||||
| 	if($('#mk-editor').length === 1) { | ||||
|  | ||||
| 		let mde = new SimpleMDE({ | ||||
| 			autofocus: true, | ||||
| 			element: $("#mk-editor").get(0), | ||||
| 			autoDownloadFontAwesome: false, | ||||
| 			placeholder: 'Enter Markdown formatted content here...', | ||||
| 			element: $("#mk-editor").get(0), | ||||
| 			hideIcons: ['heading', 'quote'], | ||||
| 			placeholder: 'Enter Markdown formatted content here...', | ||||
| 			showIcons: ['strikethrough', 'heading-1', 'heading-2', 'heading-3', 'code', 'table', 'horizontal-rule'], | ||||
| 			spellChecker: false | ||||
| 			spellChecker: false, | ||||
| 			status: false | ||||
| 		}); | ||||
|  | ||||
| 	} | ||||
|  | ||||
| 	// ==================================== | ||||
| 	// Pages logic | ||||
| 	// ==================================== | ||||
|  | ||||
| 	//=include pages/edit.js | ||||
|  | ||||
| }); | ||||
							
								
								
									
										18
									
								
								client/js/pages/edit.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								client/js/pages/edit.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
|  | ||||
| if($('#page-type-edit').length) { | ||||
|  | ||||
| 	//-> Discard | ||||
|  | ||||
| 	$('.btn-edit-discard').on('click', (ev) => { | ||||
| 		$('#modal-edit-discard').toggleClass('is-active'); | ||||
| 	}); | ||||
|  | ||||
| 	//-> Save | ||||
|  | ||||
| 	$('.btn-edit-save').on('click', (ev) => { | ||||
|  | ||||
| 		 | ||||
|  | ||||
| 	}); | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user