### Install KODExplorer from Source Source: https://github.com/kalcaddle/kodexplorer/wiki/Home Clone the KODExplorer repository using Git and set recursive file permissions to 777. ```bash git clone https://github.com/kalcaddle/KODExplorer.git chmod -Rf 777 ./KODExplorer/* ``` -------------------------------- ### Install KODExplorer via Download Source: https://github.com/kalcaddle/kodexplorer/wiki/Home Download the master branch archive using wget, unzip it, and set recursive file permissions to 777. ```bash wget https://github.com/kalcaddle/KODExplorer/archive/master.zip unzip master.zip chmod -Rf 777 ./* ``` -------------------------------- ### Initialize Editor Project and Load Main Module Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/editor.html This JavaScript code initializes the project variable with a value from the GET request and then loads the main editor module using seajs. ```javascript G.project = ""; seajs.use("app/src/editor/main"); ``` -------------------------------- ### KodExplorer Explorer UI Structure Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/index.html This snippet shows the main HTML structure for the KodExplorer interface. It includes PHP logic to conditionally hide or display certain UI elements like the top bar, footer, and sidebars based on the 'type' GET parameter. It also sets the initial path for the explorer and initializes the explorer's main JavaScript module. ```html .topbar,.common-footer,.bottom-box{display:none;} .frame-header{top:0;} .frame-main{top:0px;bottom:0px;} .frame-main .frame-left #folder-list-tree{bottom:0px !important;} .frame-header .header-content .header-left{display:none;} .frame-header .header-content .header-middle{left:12px;} .frame-main .frame-left,.frame-main .frame-resize{display:none;} .frame-main .frame-right{left:0px;} .task-tab{display:none;} .frame-header{display:none;} .frame-main .frame-left,.frame-main .frame-resize{display:none;} .frame-main .frame-right{left:0px;} .frame-main{top:0px;} .task-tab,#set_theme,#fav,#home{display:none !important;} .header-middle{top:3px;left:5px;right:140px;} #list-type-header{top:35px;} G.thisPath = ""; seajs.use("app/src/explorer/main"); ``` -------------------------------- ### Initialize File Sharing Permissions and User Data Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/file.html Sets up global variables for user, path, session ID, share information, and theme. Also configures download permissions. ```javascript AUTH = {'explorer.fileDownload':}; G.user = ""; G.path = ""; G.sid = ""; G.shareInfo = ; G.theme = ""; ``` -------------------------------- ### JavaScript Desktop Application Initialization Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/desktop/index.html Initializes desktop applications by encoding a PHP variable into JSON and setting the current path for the application. It then loads the main desktop module using seajs. ```javascript var desktopApps = ; G.thisPath = G.myDesktop; seajs.use("app/src/desktop/main"); ``` -------------------------------- ### Add New File Action Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Link to trigger the action of adding a new file in the editor. ```html [](javascript:Editor.add )) ``` -------------------------------- ### Load Plugin Main Module Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/pluginApp/index.html This snippet demonstrates how to load the main module for plugins using seajs. Ensure seajs is properly configured before use. ```javascript seajs.use('app/src/plugins/main'); ``` -------------------------------- ### Share Explorer JavaScript Initialization Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/explorer.html This JavaScript snippet initializes global variables and loads the main module for the share explorer. It sets up essential configuration like authentication, current path, user, session ID, share information, and theme. ```javascript AUTH = {'explorer.fileDownload':}; G.thisPath = ""; G.user = ""; G.sid = ""; G.shareInfo = ; G.theme = ""; seajs.use("app/src/shareExplorer/main"); ``` -------------------------------- ### Editor Configuration and Theme Settings Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Sets global editor configuration, theme, and font settings. ```javascript G.codeConfig = ; G.codeThemeAll = ""; G.codeFontAll = ""; ``` -------------------------------- ### JavaScript Initialization for Share Editor Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/editor.html Initializes JavaScript global variables and configuration for the share editor, including authentication flags, project details, user information, and share data. ```javascript AUTH = {'explorer.fileDownload':}; G.project = ""; G.user = ""; G.sid = ""; G.shareInfo = ; G.theme = ""; seajs.use("app/src/shareEditor/main"); ``` -------------------------------- ### PHP Dynamic Content and Image Loading Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/setting/index.html This snippet shows how to dynamically display the KodExplorer name and power-by text using PHP. It also includes a placeholder for a loading image, dynamically setting its source path and version. ```html ![](images/common/loading_simple.gif?v=) ``` -------------------------------- ### Global Settings and Includes Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/footerCommon.html Includes global JavaScript and CSS files based on application settings. Ensures that global HTML content is also rendered. ```html seajs.config({ base: "js/", preload: ["lib/jquery-1.8.0.min"], map: [ [/^(.*\.(?:css|js|html|htm|json|text))([\?|#].*)$/i, '$1$2?ver=' + G.version] ] }); if (navigator.serviceWorker) { navigator.serviceWorker.register('./?share/manifestJS'); } ``` -------------------------------- ### Guest Login Link Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html Provides a direct link to log in as a guest user with predefined credentials. ```html [](./index.php?user/loginSubmit&name=guest&password=guest) ``` -------------------------------- ### Loading Indicator Image Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Includes a simple loading indicator image with versioning. ```php ![](images/common/loading_simple.gif?v=) ``` -------------------------------- ### File Sharing Information Configuration Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/api/view.html Sets up global sharing information for a file, including its path and name. It also conditionally sets view-related flags if the current action is 'explorer.fileView'. ```javascript G.shareInfo = { path:"", name:"", mtime:0,size:0 } "; ``` -------------------------------- ### Explorer Wap Current Path Initialization Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Sets the current path for the explorer interface using a PHP variable. ```php G.thisPath = ""; ``` -------------------------------- ### Explorer Wap Menu Generation Logic Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Generates a menu structure for the explorer, processing item properties like 'use', 'name', 'target', and 'icon'. ```php $value) { if ($value['use']!='1') continue; $has = ST==$value['name']?'this':''; $target = " target='\_self'" ; if($value['target']=='1' || $value['target'] == '\_blank'){ $target = " target='\_blank'" ; } $name = $value['name']; if(LNG('ui_'.$name) != 'ui_'.$name){ $name = "".LNG('ui_'.$name).''; } if($value['icon']){ $name = $value['icon'].''.LNG($value['name']).''; } $subMenu .= "* [".urldecode($name)."](".urldecode($value[ ``` -------------------------------- ### JavaScript Global Variables and Configuration Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/edit.html Initializes global JavaScript variables and configuration objects for the editor, including file download permissions, initial file, editor settings, themes, fonts, user, session ID, and theme. ```javascript AUTH = {'explorer.fileDownload':}; G.fristFile = ""; G.codeConfig = ; G.codeThemeAll = ""; G.codeFontAll = ""; G.user = ""; G.sid = ""; G.theme = ""; ``` -------------------------------- ### JavaScript Module Initialization Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/setting/index.html This line initializes the main JavaScript module for the settings application using Seajs module loader. ```javascript seajs.use('app/src/setting/main'); ``` -------------------------------- ### Display Explorer Wap Title with Language Strings Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/explorerWap.html Renders the title for the explorer Wap interface, incorporating language strings for 'ui_explorer', 'kod_name', and 'kod_power_by'. ```php ``` -------------------------------- ### Language Selection Menu (PHP) Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/navbar.html Generates a list of language options for the user to select from. Each option is a link that triggers a language change. ```php $value) { $name = $value[0]; $select = I18n::getType() == $key ? "this":""; $tpl .= "* [{$name}](javascript:core.language(\"{$key}\"); \"{$key}/{$value[1]}/{$value[2]}\") "; } echo $tpl; ?> ``` -------------------------------- ### Configure Seajs for Share Index Module Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/file.html Configures Seajs to preload necessary libraries like jQuery and Ace editor, and then loads the main module for the share index. ```javascript seajs.config({ preload: [ "lib/jquery-1.8.0.min", 'lib/ace/src-min-noconflict/ace' ] }); seajs.use("app/src/shareIndex/main"); ``` -------------------------------- ### Explorer Wap Placeholder Menu Items Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Placeholder list items for navigation within the Explorer Wap interface. ```html * [](javascript:void();) * [](javascript:void();) * [](javascript:void();) * [](javascript:void();) * [](javascript:void();) ``` -------------------------------- ### Load Explorer Wap Main Module Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/explorerWap.html Loads the main JavaScript module for the explorer Wap interface using seajs. Ensure the path to the main JS file is correctly configured. ```javascript seajs.use("/src/explorerWap/main"); ``` -------------------------------- ### PHP Environment Check and Language Display Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/install.html Displays PHP environment check status and available languages. It iterates through language settings to build a selection list. ```php [Language](javascript:void\(0\);) $value) { $name = $value\[0\]; $select = I18n::getType() == $key ? "this":""; $tpl .= "* [{$name}](javascript:core.language\(\"{$key}\"\); \"{$key}/{$value[1]}/{$value[2]}\")\n"; } echo $tpl; ?> '; }else{ echo ' #### error: '.$error." \n"; $login = LNG('php\_env\_error\_ignore'); } $login\_info = str\_replace(array('{0}','{1}','{2}'),array('admin','demo/demo','guest/guest'),LNG('install\_user\_default')); echo LNG('install\_login'),' \n'.$login\_info.' '; echo ' '; echo ' ['.$login.'](javascript:void\(0\);) '; ?> ``` -------------------------------- ### Initialize Global Variables for Explorer Wap Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/explorerWap.html Sets global JavaScript variables for the current path, user, session ID, and share information. This is essential for the explorer's client-side functionality. ```javascript G.thisPath = ""; G.user = ""; G.sid = ""; G.shareInfo = ; ``` -------------------------------- ### Placeholder Link Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html An empty placeholder link that does nothing when clicked, using JavaScript's void(0). ```html [](javascript:void(0);) ``` -------------------------------- ### Seajs Configuration and Usage Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Configures seajs to preload necessary libraries like jQuery and Ace editor, then uses the main module for the editor. ```javascript seajs.config({ preload: [ "lib/jquery-1.8.0.min", 'lib/ace/src-min-noconflict/ace' ] }); seajs.use("app/src/edit/main"); ``` -------------------------------- ### Guest Auto-Login Condition Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/loginWap.html This PHP code checks if the system is configured for auto-login for guests. If the 'autoLogin' setting is '1', it proceeds with guest login. ```php ``` -------------------------------- ### Load User Main JavaScript Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/license.html Loads the main JavaScript file for the user section using seajs. Ensure the STATIC_JS path is correctly configured. ```javascript seajs.use("/src/user/main"); ``` -------------------------------- ### Explorer Wap Main JavaScript Module Loading Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Loads the main JavaScript module for the explorer Wap interface using seajs. ```javascript seajs.use("/src/explorerWap/main"); ``` -------------------------------- ### KodExplorer Name and Power By Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Displays the KodExplorer name and power by text using language strings. ```php ``` -------------------------------- ### Guest Login Submission Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/loginWap.html This HTML link is used to submit login credentials for a guest user. It points to the login submission script with predefined guest username and password. ```html ``` -------------------------------- ### Display License Information Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/license.html Displays the license registration title, including the Kod Explorer name and power-by information. This snippet is typically used in the header of the license management page. ```php ``` -------------------------------- ### HTML Template for File Share Header Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/file.html Renders the page title, including the share name, general share title, and KodExplorer branding. ```php ``` -------------------------------- ### Explorer Wap Loading Indicator Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Shows a loading image with versioning for the Explorer Wap interface. ```php ``` -------------------------------- ### Seajs Module Loading Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/install.html Loads the main user module using Seajs, specifying the path to the JavaScript file. ```javascript seajs.use("/src/user/main"); ``` -------------------------------- ### Dynamic Navbar Menu Generation (PHP) Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/navbar.html Generates the main navigation menu dynamically based on application configuration. It handles submenus and target attributes for links. ```php $value) { if ($value['use']!='1') continue; $has = ST==$value['name']?'this':''; $target = " target='_self'" ; if($value['target']=='1' || $value['target'] == '_blank'){ $target = " target='_blank'" ; } $name = rawurldecode($value['name']); if(LNG('ui_'.$name) != 'ui_'.$name){ $name = "".LNG('ui_'.$name).''; }else if($value['icon']){ $name = $value['icon'].''.LNG($name).''; }else if(!strstr($name,'<') && $value['subMenu']){ $name = "__". $name."__".LNG($name).''; } if($value['subMenu'] && !$isWap){ $subMenu .= "* [".urldecode($name)."](".urldecode($value[ "; }else{ $html .= "[".urldecode($name)."](".urldecode($value[)"; } } echo $html; ?> ``` -------------------------------- ### Page Title and Header Information Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/edit.html Displays the current file name, page title, and KodExplorer branding. It uses PHP functions to sanitize and translate content. ```php > ``` -------------------------------- ### Seajs Module Configuration Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/api/view.html Configures the Seajs module loader, setting the base path, preloading essential libraries like jQuery and Ace editor, and mapping resource versions. ```javascript seajs.config({ base: "js/", preload: ["lib/jquery-1.8.0.min",'lib/ace/src-min-noconflict/ace'], map:[ [/^(.*\.(?:css|js|html|htm|json|text))([\?|#].*)$/i,'$1$2?ver='+G.version] ] }); ``` -------------------------------- ### Generating Language List Items Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html Iterates through language types to generate a formatted list for selection. It checks the current type and creates a link for each language. ```php $value) { $name = $value[0]; $select = I18n::getType() == $key ? "this":""; $tpl .= "* [{$name}](javascript:core.language(\"{$key}\"); \"{$key}/{$value[1]}/{$value[2]}\") "; } echo $tpl; ``` -------------------------------- ### Seajs Module Usage Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/api/view.html Loads the main JavaScript module for the KodExplorer API view using Seajs. ```javascript seajs.use("/src/api/view/main"); ``` -------------------------------- ### Editor Action Links Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Provides navigation links for various editor actions like save, history, undo, redo, refresh, search, and theme settings. ```html [](javascript:; "(Ctrl-S)")[](javascript:; "")[](javascript:; "(Ctrl -)")[](javascript:; "(Ctrl Shift -)")[](javascript:; "(Ctrl-Z)")[](javascript:; "(Ctrl-Y)")[](javascript:; "(F5)")[](javascript:; "(Ctrl-L)")[](javascript:; "(Ctrl-F)")[](javascript:; "(Ctrl-F-F)")[](javascript:; "")[](javascript:; "")[](javascript:;)[](javascript:; "(Ctrl-Shift-S)") ``` -------------------------------- ### CSS Styling for Tips Page Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/showTips.html This CSS styles the layout, messages, icons, and interactive elements of the tips page. It ensures a consistent and user-friendly presentation. ```css body{ background-color:#f0f2f5; font-family: Verdana,"Lantinghei SC","Hiragino Sans GB","Microsoft Yahei",Helvetica,arial,sans-serif; line-height: 1.5em; } body a,body a:hover{color: #1890ff;} .body-panel{ width:70%;margin:10% auto 5% auto; font-size: 13px; color:#666; background:#fff;border-radius:4px; padding-top:50px;padding-bottom:100px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); } .body-panel .check-result{text-align: center;color:#000;} .body-panel .check-result .icon{width:70px;height:70px;line-height:70px;font-size:30px;} .check-result-title{font-size: 24px;line-height: 32px;margin:20px 0;} .check-result-desc{ color: #333; margin: 0 0 20px 0; background: #fafafa; font-size: 16px; width: 80%; margin: 0 auto; border-radius: 2px; padding: 24px 40px; text-align: left; } .error-info{ border-left: 5px solid #1890ff; display: block; padding: 5px 10px; background: #fcfcfc; color: #666; word-break: break-all; font-family: monospace; } .location-to{padding: 10px 0;color: #888;font-size: 13px;font-style: italic;} .icon{ font-family: FontAwesome; display: inline-block; width: 20px; height: 20px; background: rgba(0, 0, 0, 0.02); text-align: center; color: #666; border-radius: 50%; line-height: 20px; font-size: 12px; } .icon.icon-loading{ -webkit-animation: moveCircleLoopRight 1.4s infinite linear; animation: moveCircleLoopRight 1.4s infinite linear; } .icon.icon-loading:before{content:"\f110";} .icon.icon-success{background:#52c41a;color:#fff;} .icon.icon-success:before{content:"\f00c";} .icon.icon-error{background:#f5222d;color:#fff;} .icon.icon-error:before{content:"\f00d";} ``` -------------------------------- ### PHP Dynamic Content and Localization Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/desktop/index.html This PHP snippet dynamically sets the page title using localized strings and includes a variable for background image URLs. It's used for setting up the initial page header. ```php .aero:before,.aero:after,.full-background-wall{background-image:url('.$wall.')}';?> ``` -------------------------------- ### Language Selection Link Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html A placeholder link for language selection, using JavaScript's void(0) to prevent navigation. ```html [Language](javascript:void(0);) ``` -------------------------------- ### Language Selection Logic Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/navbarShare.html This PHP code iterates through language settings to generate a list of language options for the navbar. It highlights the currently selected language. ```php $value) { $name = $value[0]; $select = I18n::getType() == $key ? "this":""; $tpl .= "* [{$name}](javascript:core.language(\"{$key}\"); \"{$key}/{$value[1]}/{$value[2]}\")\n"; } echo $tpl; ``` -------------------------------- ### HTML and CSS for Share Editor Layout Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/editor.html Contains HTML for the page title and CSS rules to control the layout of the share editor, hiding the top bar and adjusting frame positions. ```html .topbar{display: none;} .frame-header,.frame-main,.frame-main .frame-left{top:0;} .edit-content.markdown-full-page .edit-right-frame .markdown-preview {padding-top: 50px;} .edit-body {bottom: 30px;} .frame-main .frame-left{top:0;} .frame-main{bottom:0px;} ``` -------------------------------- ### Share Explorer HTML Structure and Dynamic Styling Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/explorer.html This snippet contains PHP, HTML, and CSS code that dynamically adjusts the layout and visibility of UI elements based on the 'type' URL parameter. It's used to customize the share explorer view. ```php ``` ```css .frame-main .frame-left {bottom: 0px;} .frame-main .bottom-box{display:none !important;} .tools-right #set_theme{display:none !important;} #PV_rotate_Left,#PV_rotate_Right,#PV_Btn_Remove{display:none !important;} ``` ```php .topbar,.common-footer,.bottom-box{display:none;} .frame-header{top:0;} .frame-main{top:0px;bottom:0px;} .frame-main .frame-left #folder-list-tree{bottom:5px;} .frame-header .header-content .header-left{display:none;} .frame-header .header-content .header-middle{left:12px;} .frame-main .frame-left,.frame-main .frame-resize{display:none;} .frame-main .frame-right{left:0px;} .task-tab{display:none;} .frame-header{display:none;} .frame-main .frame-left,.frame-main .frame-resize{display:none;} .frame-main .frame-right{left:0px;} .frame-main{top:0px;} .task-tab,#set_theme,#fav,#home{display:none !important;} .header-middle{top:3px;left:5px;right:140px;} #list-type-header{top:35px;} ``` -------------------------------- ### JavaScript Module Loading Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/edit.html Configures and loads necessary JavaScript modules using seajs, specifically jQuery and the Ace editor library, before initializing the main editor application. ```javascript seajs.config({ preload: [ "lib/jquery-1.8.0.min", 'lib/ace/src-min-noconflict/ace' ] }); seajs.use("app/src/edit/main"); ``` -------------------------------- ### Auto-Login Check Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html Checks if the auto-login setting is enabled ('1'). This is part of a conditional block in the template. ```php config['settingSystem']['autoLogin'] == '1') {?> ``` -------------------------------- ### CSS for Main Frame Bottom Offset Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/file.html Adjusts the bottom offset for the main frame element. ```css .frame-main{bottom: 32px;} ``` -------------------------------- ### Explorer Wap HTML Title Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/explorer/explorerWap.html Displays the title for the Explorer Wap interface, including language strings and version information. ```php ``` -------------------------------- ### JavaScript Error Handling for Seajs Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/install.html A timeout function to check if Seajs and LNG are defined, alerting the user if JavaScript files are incomplete or corrupted. ```javascript setTimeout(function(){ if( typeof(seajs) == 'undefined' || typeof(LNG) == 'undefined' ){ alert('js文件不完整,请查看浏览器控制台和服务器配置是否正常。或检查文件是否被修改(或咨询主机商压缩js导致文件损坏);[js load error!]'); } },1000); ``` -------------------------------- ### Editor Status Bar Information Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/edit.html Displays line number, file type, encoding, and tab settings in the editor's status bar. ```html [0:0](javascript:;) [text](javascript:;) [UTF-8](javascript:;) [Tabs:4](javascript:;)[](javascript:;) ``` -------------------------------- ### Editor Toolbar Buttons Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/share/edit.html Defines various toolbar buttons for file editing actions like save, undo, redo, search, and settings. These are represented as links with JavaScript actions. ```html [](javascript:; "(Ctrl-S)")[](javascript:; "")[](javascript:; "(Ctrl-Z)")[](javascript:; "(Ctrl-Y)")[](javascript:; "(F5)")[](javascript:; "(Ctrl-L)")[](javascript:; "(Ctrl-F)")[](javascript:; "(Ctrl-F-F)")[](javascript:; "")[](javascript:; "")[](javascript:; "")[](javascript:; "(Ctrl-Shift-S)") ``` ```html [](javascript:; "")[](javascript:; "") ``` ```html [](javascript:Editor.add ()) ``` ```html [0:0](javascript:;) [text](javascript:;) [Tabs:4](javascript:;)[](javascript:;) ``` -------------------------------- ### JavaScript Countdown Timer and Redirect Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/showTips.html This script implements a countdown timer that updates a message and automatically redirects the user to a specified URL when the timer reaches zero. It's useful for time-sensitive notifications or actions. ```javascript var timeout = parseInt(""); var link = ""; var loop = setInterval(function(){ timeout --; var info = timeout + "s 后自动跳转, 立即跳转"; $('.location-to').html(info); if(timeout<=0){ clearInterval(loop); window.location.href = link; } },1000); ``` -------------------------------- ### CSS for Aero Elements and Background Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/common/header.html This CSS rule sets the background color and image for .aero elements and the general background. It uses a variable for the background image. ```css .aero:before,.aero:after,.background{background-color:#bbb;background-image:{$background};} ``` -------------------------------- ### User Login Check Code Image Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/loginWap.html This HTML snippet displays an image used for a security check code during the login process. The image source is dynamically generated by a PHP script. ```html Login ``` -------------------------------- ### Hide Top Bar and Adjust Frame Header/Main Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/editor/editor.html These CSS rules are used to hide the top bar and adjust the positioning of the frame header and main content areas, likely for a full-screen editor view. ```html .topbar{display: none;}.frame-header{top:0;}.frame-main{top:0px;} ``` -------------------------------- ### User Check Code Image Source: https://github.com/kalcaddle/kodexplorer/blob/master/app/template/user/login.html Displays an image that likely serves as a CAPTCHA or security check. It points to a user/checkCode endpoint. ```html ![](./index.php?user/checkCode) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.