Browse Source

一些优化

star7th 7 years ago
parent
commit
e57f77aa83

+ 1 - 1
Application/Home/Lang/en-us.php

@@ -42,7 +42,7 @@ return array(
     'section_title7' => 'Hosted online',
     'section_description7' => 'Www.showdoc.cc provide security and stability of the document hosting service',
     'section_title8' => 'Try it now',
-    'section_description8' => 'Over 2000+ IT team is using ShowDoc',
+    'section_description8' => 'Over 6000+ IT team is using ShowDoc',
 
 
     //Common message

+ 2 - 2
Application/Home/Lang/zh-cn.php

@@ -40,9 +40,9 @@ return array(
     'section_title6' => '免费开源',
     'section_description6' => 'ShowDoc提供免费开源的版本<br>你可以选择将ShowDoc部署到你的服务器',
     'section_title7' => '在线托管',
-    'section_description7' => 'www.showdoc.cc 提供安全稳定的在线文档托管服务<br>你可以放心地选择托管你的文档数据在云端',
+    'section_description7' => '<a href="https://www.showdoc.cc" target="_blank">www.showdoc.cc</a> 提供安全稳定的在线文档托管服务<br>你可以放心地选择托管你的文档数据在云端',
     'section_title8' => '立即体验',
-    'section_description8' => '超过2000+互联网团队正在使用ShowDoc',
+    'section_description8' => '超过6000+互联网团队正在使用ShowDoc',
 
 
     //Common message

+ 57 - 55
Application/Home/View/Index/index.html

@@ -42,63 +42,65 @@
 
 <div id="dowebok">
     <div class="section">
-        <img src="__PUBLIC__/logo/b_64.png" alt="">
-        <h1>{$Think.lang.section_title1}</h1>
-        <br>
-        <p>{$Think.lang.section_description1}</p>
-        <br>
-        <p>
-            <a class="btn   btn-large " href="{$demo_url}" target="_blank">{$Think.lang.demo}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-            <a class="btn  btn-large" href="{$help_url}" target="_blank" >{$Think.lang.help}&nbsp;</i></a>
-        </p>
-    </div>
-    <div class="section">
-        <h1>{$Think.lang.section_title2}</h1>
-        <br>
-        <p> {$Think.lang.section_description2}</p>
-        <br>
-    </div>
-    <div class="section">
-        <h1>{$Think.lang.section_title3}</h1>
-        <br>
-        <p>{$Think.lang.section_description3}</p>
-        <br>
-    </div>
-    <div class="section">
-        <h1>{$Think.lang.section_title4}</h1>
-        <br>
-        <p>{$Think.lang.section_description4}</p>
-        <br>
-    </div>
+        <div class="slide">
+            <img src="__PUBLIC__/logo/b_64.png" alt="">
+            <h1>{$Think.lang.section_title1}</h1>
+            <br>
+            <p>{$Think.lang.section_description1}</p>
+            <br>
+            <p>
+                <a class="btn   btn-large " href="{$demo_url}" target="_blank">{$Think.lang.demo}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                <a class="btn  btn-large" href="{$help_url}" target="_blank" >{$Think.lang.help}&nbsp;</i></a>
+            </p>
+        </div>
+        <div class="slide">
+            <h1>{$Think.lang.section_title2}</h1>
+            <br>
+            <p> {$Think.lang.section_description2}</p>
+            <br>
+        </div>
+        <div class="slide">
+            <h1>{$Think.lang.section_title3}</h1>
+            <br>
+            <p>{$Think.lang.section_description3}</p>
+            <br>
+        </div>
+        <div class="slide">
+            <h1>{$Think.lang.section_title4}</h1>
+            <br>
+            <p>{$Think.lang.section_description4}</p>
+            <br>
+        </div>
 
-    <div class="section">
-        <h1>{$Think.lang.section_title5}</h1>
-        <br>
-        <p>{$Think.lang.section_description5}</p>
-        <br>
-    </div>
+        <div class="slide">
+            <h1>{$Think.lang.section_title5}</h1>
+            <br>
+            <p>{$Think.lang.section_description5}</p>
+            <br>
+        </div>
 
-    <div class="section">
-        <h1>{$Think.lang.section_title6}</h1>
-        <br>
-        <p>{$Think.lang.section_description6}</p>
-        <br>
-    </div>
+        <div class="slide">
+            <h1>{$Think.lang.section_title6}</h1>
+            <br>
+            <p>{$Think.lang.section_description6}</p>
+            <br>
+        </div>
 
-    <div class="section">
-        <h1>{$Think.lang.section_title7}</h1>
-        <br>
-        <p>{$Think.lang.section_description7}</p>
-        <br>
-    </div>
-    <div class="section">
-        <h1></h1>
-        <br>
-        <p>{$Think.lang.section_description8}</p>
-        <br>
-        <p>
-            <a class="btn   btn-large " href="{:U('Home/User/register')}">{$Think.lang.section_title8}</a>
-        </p>
+        <div class="slide">
+            <h1>{$Think.lang.section_title7}</h1>
+            <br>
+            <p>{$Think.lang.section_description7}</p>
+            <br>
+        </div>
+        <div class="slide">
+            <h1></h1>
+            <br>
+            <p>{$Think.lang.section_description8}</p>
+            <br>
+            <p>
+                <a class="btn   btn-large " href="{:U('Home/User/register')}">{$Think.lang.section_title8}</a>
+            </p>
+        </div>
     </div>
 </div>
  <include file="Common/footer" />
@@ -107,7 +109,7 @@
 $(function(){
     $('#dowebok').fullpage({
         sectionsColor : ['#1bbc9b', '#4BBFC3', '#2C606A', '#f90','#7CBD9D','#A77DC2','#85CE92','#1bbc9b'],
-        navigation:true,
+        navigation:false,
     });
 
     $(window).resize(function(){

+ 1 - 1
Application/Home/View/Page/edit.html

@@ -141,7 +141,7 @@
 <script src="__PUBLIC__/editor.md/plugins/table-dialog/table-dialog.js"></script>
 <script src="__PUBLIC__/editor.md/plugins/reference-link-dialog/reference-link-dialog.js"></script>
 
-<script src="__PUBLIC__/js/page/edit.js?v=1.1.2thirdonmopqrstutv1"></script>
+<script src="__PUBLIC__/js/page/edit.js?v=1.1.2thirdonmopqrstutv12"></script>
 <if condition="LANG_SET=='en-us'">
     <script src="__PUBLIC__/editor.md/languages/en.js"></script>
 </if>

+ 1 - 0
Public/js/page/edit.js

@@ -112,6 +112,7 @@ $(function() {
     tex: true, // 默认不解析
     flowChart: true, // 默认不解析
     sequenceDiagram: true, // 默认不解析
+    htmlDecode : "style,script,iframe|on*",//解析html
     imageUpload: true,
     imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
     imageUploadURL: "?s=home/page/uploadImg",

+ 1 - 1
index.php

@@ -15,7 +15,7 @@
 if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');
 
 // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
-//define('APP_DEBUG',True);
+define('APP_DEBUG',True);
 
 // 定义应用目录
 define('APP_PATH','./Application/');