mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-05 16:24:00 +01:00
Responsive helper plugin ready plus 500x500px PW
This commit is contained in:
@@ -38,6 +38,10 @@ if (file_exists(dirname(__FILE__)."/plugins/pesticide/pesticide.js")) {
|
||||
if (file_exists(dirname(__FILE__)."/plugins/stats.js/stats.min.js")) {
|
||||
echo '<script src="plugins/stats.js/stats.min.js?microtime='.microtime(true).'"></script>';
|
||||
};?>
|
||||
<?php
|
||||
if (file_exists(dirname(__FILE__)."/plugins/responsive-helper/responsive-helper.js")) {
|
||||
echo '<script src="plugins/responsive-helper/responsive-helper.js?microtime='.microtime(true).'"></script>';
|
||||
};?>
|
||||
<link rel="stylesheet" href="<?php
|
||||
if ($ICEcoder["theme"]=="default") {echo 'lib/editor.css';} else {echo $ICEcoder["codeMirrorDir"].'/theme/'.$ICEcoder["theme"].'.css';};
|
||||
echo "?microtime=".microtime(true);
|
||||
|
||||
@@ -236,6 +236,7 @@ if (!$error && $_GET['action']=="save") {
|
||||
top.ICEcoder.previewWindowLoading = false;
|
||||
try {top.ICEcoder.doPesticide();} catch(err) {};
|
||||
try {top.ICEcoder.doStatsJS(\'save\');} catch(err) {};
|
||||
try {top.ICEcoder.doResponsive();} catch(err) {};
|
||||
clearInterval(top.ICEcoder.checkPreviewWindowLoadingInt);
|
||||
} else {
|
||||
top.ICEcoder.previewWindowLoading = top.ICEcoder.previewWindow.document.readyState == "loading" ? true : false;
|
||||
|
||||
@@ -594,6 +594,8 @@ var ICEcoder = {
|
||||
try {top.ICEcoder.doPesticide();} catch(err) {};
|
||||
// Do the stats.js plugin if it exists
|
||||
try {top.ICEcoder.doStatsJS('update');} catch(err) {};
|
||||
// Do the responsive plugin if it exists
|
||||
try {top.ICEcoder.doResponsive();} catch(err) {};
|
||||
},
|
||||
|
||||
// Clean up our loaded code
|
||||
@@ -2773,7 +2775,7 @@ var ICEcoder = {
|
||||
thisCM = top.ICEcoder.editorFocusInstance.indexOf('diff') > -1 ? cMdiff : cM;
|
||||
|
||||
top.ICEcoder.previewWindowLoading = true;
|
||||
top.ICEcoder.previewWindow = window.open(filepath,"previewWindow");
|
||||
top.ICEcoder.previewWindow = window.open(filepath,"previewWindow",500,500);
|
||||
if (["md"].indexOf(fileExt) > -1) {
|
||||
top.ICEcoder.previewWindow.onload = function() {
|
||||
top.ICEcoder.previewWindowLoading = false;
|
||||
@@ -2786,6 +2788,8 @@ var ICEcoder = {
|
||||
try {top.ICEcoder.doPesticide();} catch(err) {};
|
||||
// Do the stats.js plugin if it exists
|
||||
try {top.ICEcoder.doStatsJS('open');} catch(err) {};
|
||||
// Do the responsive plugin if it exists
|
||||
try {top.ICEcoder.doResponsive();} catch(err) {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user