Merge branch 'develop' of https://git.trustie.net/jacknudt/trustieforge into develop
This commit is contained in:
commit
85a0e0808c
2
Gemfile
2
Gemfile
|
@ -14,7 +14,7 @@ unless RUBY_PLATFORM =~ /w32/
|
||||||
gem 'nokogiri'
|
gem 'nokogiri'
|
||||||
end
|
end
|
||||||
|
|
||||||
gem 'simple_xlsx_reader'
|
#gem 'simple_xlsx_reader'
|
||||||
gem 'wechat',path: 'lib/wechat'
|
gem 'wechat',path: 'lib/wechat'
|
||||||
gem 'grack', path:'lib/grack'
|
gem 'grack', path:'lib/grack'
|
||||||
gem 'gitlab', path: 'lib/gitlab-cli'
|
gem 'gitlab', path: 'lib/gitlab-cli'
|
||||||
|
|
|
@ -5,12 +5,15 @@ class StatisticsController < ApplicationController
|
||||||
before_filter :get_date, :only => [:index, :new]
|
before_filter :get_date, :only => [:index, :new]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
type = (params[:type] == "reorder_popu" ? "size" : "created_at")
|
||||||
|
order = (params[:order] == "asc" ? "asc" : "desc")
|
||||||
if params[:sub_category_id].present?
|
if params[:sub_category_id].present?
|
||||||
@statistics = Statistic.where(:sub_category_id => params[:sub_category_id])
|
@statistics = Statistic.where(:sub_category_id => params[:sub_category_id])
|
||||||
@statistics = Statistic.find_by_sql("SELECT statistics.*, (select sum(filesize) from attachments where attachments.container_type='Statistic' and
|
@statistics = Statistic.find_by_sql("SELECT statistics.*, (select sum(filesize) from attachments where attachments.container_type='Statistic' and
|
||||||
attachments.container_id = statistics.id group by attachments.container_id) as size from statistics where sub_category_id = #{params[:sub_category_id]} order by #{params[:type]} #{params[:order]}")
|
attachments.container_id = statistics.id group by attachments.container_id) as size from statistics where sub_category_id = #{params[:sub_category_id]} order by #{type} #{order}")
|
||||||
else
|
else
|
||||||
@statistics = Statistic.all
|
@statistics = Statistic.find_by_sql("SELECT statistics.*, (select sum(filesize) from attachments where attachments.container_type='Statistic' and
|
||||||
|
attachments.container_id = statistics.id group by attachments.container_id) as size from statistics order by #{type} #{order}")
|
||||||
end
|
end
|
||||||
@statistics_count = @statistics.count
|
@statistics_count = @statistics.count
|
||||||
@limit = 10
|
@limit = 10
|
||||||
|
@ -83,6 +86,7 @@ class StatisticsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @statistic.update_attributes(params[:statistic])
|
if @statistic.update_attributes(params[:statistic])
|
||||||
|
@statistic.save_attachments_containers(params[:attachments], User.current, true)
|
||||||
format.html { redirect_to @statistic, notice: 'Statistic was successfully updated.' }
|
format.html { redirect_to @statistic, notice: 'Statistic was successfully updated.' }
|
||||||
format.json { head :no_content }
|
format.json { head :no_content }
|
||||||
else
|
else
|
||||||
|
@ -105,11 +109,11 @@ class StatisticsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_sub_category
|
def get_sub_category
|
||||||
if params[:main_category_id] == "-1"
|
if params[:main_category_id].present?
|
||||||
@sub_categories = SubCategory.all
|
|
||||||
else
|
|
||||||
main_category = MainCategory.find(params[:main_category_id])
|
main_category = MainCategory.find(params[:main_category_id])
|
||||||
@sub_categories = main_category.sub_categories
|
@sub_categories = main_category.sub_categories
|
||||||
|
else
|
||||||
|
@sub_categories = SubCategory.all
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js
|
format.js
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
|
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
|
||||||
|
<%= javascript_include_tag '/editormd/lib/marked.min.js','/editormd/lib/prettify.min.js','/editormd/lib/raphael.min.js','/editormd/lib/underscore.min.js','/editormd/lib/sequence-diagram.min.js',
|
||||||
|
'/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js' %>
|
||||||
<div id="create_new_statis" class="bg_white_bor pl10 pt20 pr10 cl mb20">
|
<div id="create_new_statis" class="bg_white_bor pl10 pt20 pr10 cl mb20">
|
||||||
<%= form_for(@statistic) do |f| %>
|
<%= form_for(@statistic) do |f| %>
|
||||||
<% if @statistic.errors.any? %>
|
<% if @statistic.errors.any? %>
|
||||||
<div id="error_explanation">
|
<div id="error_explanation">
|
||||||
<h2><%= pluralize(@statistic.errors.count, "error") %> prohibited this statistic from being saved:</h2>
|
<h2><%= pluralize(@statistic.errors.count, "error") %> prohibited this statistic from being saved:</h2>
|
||||||
|
<ul>
|
||||||
<ul>
|
<% @statistic.errors.full_messages.each do |msg| %>
|
||||||
<% @statistic.errors.full_messages.each do |msg| %>
|
<li><%= msg %></li>
|
||||||
<li><%= msg %></li>
|
<% end %>
|
||||||
<% end %>
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="field line_field">
|
<div class="field line_field">
|
||||||
|
@ -20,8 +22,8 @@
|
||||||
<div class="field line_field mb50">
|
<div class="field line_field mb50">
|
||||||
<label><span>*</span>数据分类:</label>
|
<label><span>*</span>数据分类:</label>
|
||||||
<%= f.select :main_category_id, (@main_categories.collect { |mc| [mc.name, mc.id] }),
|
<%= f.select :main_category_id, (@main_categories.collect { |mc| [mc.name, mc.id] }),
|
||||||
{:no_label => true}, :onchange => 'getSubCategory(this.options[this.options.selectedIndex].value)',
|
{:no_label => true}, :onchange => 'getSubCategory(this.options[this.options.selectedIndex].value)',
|
||||||
:class => "w150" %>
|
:class => "w150" %>
|
||||||
|
|
||||||
<div class="fl pr wb20 ml20 change_sort" id="sub_category" style="display: <%= @sub_categories.blank? ? 'none' : '' %>">
|
<div class="fl pr wb20 ml20 change_sort" id="sub_category" style="display: <%= @sub_categories.blank? ? 'none' : '' %>">
|
||||||
<%= f.select :sub_category_id, (@sub_categories.present? ? @sub_categories.collect { |mc| [mc.name, mc.id] } : []),
|
<%= f.select :sub_category_id, (@sub_categories.present? ? @sub_categories.collect { |mc| [mc.name, mc.id] } : []),
|
||||||
|
@ -30,7 +32,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="field line_field">
|
<div class="field line_field">
|
||||||
<label>数据描述:</label>
|
<label>数据描述:</label>
|
||||||
<%= f.text_area :description, :class => "wb85 h200 mb20" %>
|
<div id="statistics_description" class="new_li fl">
|
||||||
|
<%= f.text_area :description, :class => "wb85 h200 mb20", :style => "display: none;" %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field cl">
|
<div class="field cl">
|
||||||
<label> </label>
|
<label> </label>
|
||||||
|
@ -40,10 +44,64 @@
|
||||||
<a href="javascript:void(0)" class="blue_btn_big c_white fr mr45" onclick="submit_cate();">保存</a>
|
<a href="javascript:void(0)" class="blue_btn_big c_white fr mr45" onclick="submit_cate();">保存</a>
|
||||||
<%= link_to '取消', statistics_path ,:class=>"grey_btn_big fr c_white mr10" %>
|
<%= link_to '取消', statistics_path ,:class=>"grey_btn_big fr c_white mr10" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
taskpass_editormd = editormd("statistics_description", {
|
||||||
|
width : "85.5%",
|
||||||
|
height : 400,
|
||||||
|
syncScrolling : "single",
|
||||||
|
//你的lib目录的路径,我这边用JSP做测试的
|
||||||
|
path : "/editormd/lib/",
|
||||||
|
tex : true,
|
||||||
|
tocm : true,
|
||||||
|
emoji : true,
|
||||||
|
taskList : true,
|
||||||
|
codeFold : true,
|
||||||
|
searchReplace : true,
|
||||||
|
htmlDecode : "style,script,iframe",
|
||||||
|
flowChart : true,
|
||||||
|
sequenceDiagram : true,
|
||||||
|
autoFocus: false,
|
||||||
|
toolbarIcons : function() {
|
||||||
|
// Or return editormd.toolbarModes[name]; // full, simple, mini
|
||||||
|
// Using "||" set icons align right.
|
||||||
|
return ["bold", "italic", "|", "list-ul", "list-ol", "|", "code", "code-block", "|", "testIcon", "testIcon1", '|', "image", "table", '|', "watch", "clear" ]
|
||||||
|
},
|
||||||
|
toolbarCustomIcons : {
|
||||||
|
testIcon : "<a type=\"inline\" class=\"latex\" ><div class='zbg'></div></a>",
|
||||||
|
testIcon1 : "<a type=\"latex\" class=\"latex\" ><div class='zbg_latex'></div></a>"
|
||||||
|
},
|
||||||
|
//这个配置在simple.html中并没有,但是为了能够提交表单,使用这个配置可以让构造出来的HTML代码直接在第二个隐藏的textarea域中,方便post提交表单。
|
||||||
|
saveHTMLToTextarea : true,
|
||||||
|
// 用于增加自定义工具栏的功能,可以直接插入HTML标签,不使用默认的元素创建图标
|
||||||
|
dialogMaskOpacity : 0.6,
|
||||||
|
placeholder: "<%= @st == 0 ? "请输入完成当前任务依赖的知识点或者其它相关信息" : "请输入选择题的题干内容" %>",
|
||||||
|
imageUpload : true,
|
||||||
|
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
|
||||||
|
imageUploadURL : "<%#= upload_with_markdown_path(:container_id => @shixun.id, :container_type => @shixun.class) %>",//url
|
||||||
|
onload: function(){
|
||||||
|
$("#statistics_description [type=\"latex\"]").bind("click", function(){
|
||||||
|
taskpass_editormd.cm.replaceSelection("```latex");
|
||||||
|
taskpass_editormd.cm.replaceSelection("\n");
|
||||||
|
taskpass_editormd.cm.replaceSelection("\n");
|
||||||
|
taskpass_editormd.cm.replaceSelection("```");
|
||||||
|
var __Cursor = taskpass_editormd.cm.getDoc().getCursor();
|
||||||
|
taskpass_editormd.cm.setCursor(__Cursor.line-1, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#statistics_description [type=\"inline\"]").bind("click", function(){
|
||||||
|
taskpass_editormd.cm.replaceSelection("$$$$");
|
||||||
|
var __Cursor = taskpass_editormd.cm.getDoc().getCursor();
|
||||||
|
taskpass_editormd.cm.setCursor(__Cursor.line, __Cursor.ch-2);
|
||||||
|
taskpass_editormd.cm.focus();
|
||||||
|
});
|
||||||
|
$("[type=\"inline\"]").attr("title", "行内公式");
|
||||||
|
$("[type=\"latex\"]").attr("title", "多行公式");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function submit_cate(){
|
function submit_cate(){
|
||||||
var name=$("#statistic_name").val();
|
var name=$("#statistic_name").val();
|
||||||
var cate=$("#statistic_main_category_id option:selected").text();
|
var cate=$("#statistic_main_category_id option:selected").text();
|
||||||
|
@ -62,23 +120,23 @@
|
||||||
data: {main_category_id: id}
|
data: {main_category_id: id}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//删除标签
|
//删除标签
|
||||||
function tag_del(item){
|
function tag_del(item){
|
||||||
$(item).parents(".tag_span").remove();
|
$(item).parents(".tag_span").remove();
|
||||||
}
|
}
|
||||||
function save_tag(){
|
function save_tag(){
|
||||||
var value=$("#input_tag").val();
|
var value=$("#input_tag").val();
|
||||||
var html="";
|
var html="";
|
||||||
if(value != ""){
|
if(value != ""){
|
||||||
html='<span class="tag_span">'+value+'<input type="hidden" value="'+value+'" class="tag_hide"><a class="tag_del ml3" onclick="tag_del(this)">×</a></span>';
|
html='<span class="tag_span">'+value+'<input type="hidden" value="'+value+'" class="tag_hide"><a class="tag_del ml3" onclick="tag_del(this)">×</a></span>';
|
||||||
}
|
}
|
||||||
$("#input_tag").val('');
|
$("#input_tag").val('');
|
||||||
$("#tag_modal").append(html);
|
$("#tag_modal").append(html);
|
||||||
$("#save_tag_all").addClass("none");
|
$("#save_tag_all").addClass("none");
|
||||||
}
|
}
|
||||||
function show_inputContent(){
|
function show_inputContent(){
|
||||||
$("#save_tag_all").removeClass("none");
|
$("#save_tag_all").removeClass("none");
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$(".c_sort_input").live("focus",function(){
|
$(".c_sort_input").live("focus",function(){
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
<span class="active">不限</span>
|
<span class="active" onclick="get_sub_categories_list('')" data-value="">不限</span>
|
||||||
<% @sub_categories.each do |mc| %>
|
<% @sub_categories.each do |mc| %>
|
||||||
<span onclick="get_sub_categories_list(<%= mc.id %>)"><%= mc.name %></span>
|
<span onclick="get_sub_categories_list(<%= mc.id %>)" data-value="<%= mc.id %>"><%= mc.name %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function get_sub_categories_list(id){
|
function get_sub_categories_list(id){
|
||||||
|
$("#reorder_popu").removeClass("sortArrowActiveU");
|
||||||
|
$("#reorder_popu").removeClass("sortArrowActiveD");
|
||||||
|
$("#reorder_time").addClass("sortArrowActiveD");
|
||||||
|
$("#reorder_time").removeClass("sortArrowActiveU");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "<%= statistics_path %>",
|
url: "<%= statistics_path %>",
|
||||||
data: {sub_category_id: id},
|
data: {sub_category_id: id},
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="data_half cl">
|
<div class="data_half cl">
|
||||||
<span class="fl data_name">数据类型</span>
|
<span class="fl data_name">数据类型</span>
|
||||||
<div class="fl data_line">
|
<div class="fl data_line">
|
||||||
<span class="active" onclick="get_sub_categories(-1)">不限</span>
|
<span class="active" onclick="get_sub_categories('')">不限</span>
|
||||||
<% @main_categories.each do |mc| %>
|
<% @main_categories.each do |mc| %>
|
||||||
<span onclick="get_sub_categories(<%= mc.id %>);"><%= mc.name %></span>
|
<span onclick="get_sub_categories(<%= mc.id %>);"><%= mc.name %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -21,7 +21,6 @@
|
||||||
<div class="postDetailBanner cl mt7" style="border: none;width: auto">
|
<div class="postDetailBanner cl mt7" style="border: none;width: auto">
|
||||||
<div class="postSort" id="time"><a href="javascript:void(0);" class="linkGrey2 fl">时间</a><a href="javascript:void(0);" id="reorder_time" class="sortArrowActiveD"></a></div>
|
<div class="postSort" id="time"><a href="javascript:void(0);" class="linkGrey2 fl">时间</a><a href="javascript:void(0);" id="reorder_time" class="sortArrowActiveD"></a></div>
|
||||||
<div class="postSort" id="popu"><a href="javascript:void(0);" class="linkGrey2 fl">大小</a><a href="javascript:void(0);" id="reorder_popu" class=""></a></div>
|
<div class="postSort" id="popu"><a href="javascript:void(0);" class="linkGrey2 fl">大小</a><a href="javascript:void(0);" id="reorder_popu" class=""></a></div>
|
||||||
<div class="postSort" id="complex"><a href="javascript:void(0);" class="linkGrey2 fl">人气</a><a href="javascript:void(0);" id="reorder_complex" class=""></a><!--<a href="javascript:void(0);" class="sortArrowActiveD"></a>--></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="fr hw_search_box">
|
<!--<div class="fr hw_search_box">
|
||||||
|
@ -56,53 +55,40 @@
|
||||||
$(this).parent(".data_line").find("span").removeClass("active");
|
$(this).parent(".data_line").find("span").removeClass("active");
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
})
|
})
|
||||||
$("#complex").click(function(){
|
|
||||||
$("#reorder_popu").removeClass("sortArrowActiveU");
|
|
||||||
$("#reorder_popu").removeClass("sortArrowActiveD");
|
|
||||||
$("#reorder_time").removeClass("sortArrowActiveD");
|
|
||||||
$("#reorder_time").removeClass("sortArrowActiveU");
|
|
||||||
add_class("reorder_complex");
|
|
||||||
});
|
|
||||||
$("#popu").click(function () {
|
|
||||||
$("#reorder_complex").removeClass("sortArrowActiveD");
|
|
||||||
$("#reorder_complex").removeClass("sortArrowActiveU");
|
|
||||||
$("#reorder_time").removeClass("sortArrowActiveD");
|
|
||||||
$("#reorder_time").removeClass("sortArrowActiveU");
|
|
||||||
add_class("reorder_popu");
|
|
||||||
});
|
|
||||||
$("#time").click(function () {
|
$("#time").click(function () {
|
||||||
$("#reorder_complex").removeClass("sortArrowActiveD");
|
|
||||||
$("#reorder_complex").removeClass("sortArrowActiveU");
|
|
||||||
$("#reorder_popu").removeClass("sortArrowActiveU");
|
$("#reorder_popu").removeClass("sortArrowActiveU");
|
||||||
$("#reorder_popu").removeClass("sortArrowActiveD");
|
$("#reorder_popu").removeClass("sortArrowActiveD");
|
||||||
add_class("reorder_time");
|
add_class("reorder_time");
|
||||||
});
|
});
|
||||||
})
|
$("#popu").click(function () {
|
||||||
|
$("#reorder_time").removeClass("sortArrowActiveD");
|
||||||
|
$("#reorder_time").removeClass("sortArrowActiveU");
|
||||||
|
add_class("reorder_popu");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function add_class(id){
|
function add_class(id){
|
||||||
|
var sub_category_id = $("#sub_categories_list .active").attr("data-value");
|
||||||
if($("#"+id).hasClass("sortArrowActiveD")){
|
if($("#"+id).hasClass("sortArrowActiveD")){
|
||||||
$("#"+id).removeClass("sortArrowActiveD");
|
$("#"+id).removeClass("sortArrowActiveD");
|
||||||
$("#"+id).addClass("sortArrowActiveU");
|
$("#"+id).addClass("sortArrowActiveU");
|
||||||
/*$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
url: '<%= statistics_path %>' + '.js?type=' + id + '&order=asc&sub_category_id=' + sub_category_id,
|
||||||
url: '<%#= forums_path %>' + '.js?' + id + '=asc&page='+<%#= @topic_pages.page%>
|
dataType: "script"
|
||||||
|
});
|
||||||
});*/
|
|
||||||
}else if($("#"+id).hasClass("sortArrowActiveU")){
|
}else if($("#"+id).hasClass("sortArrowActiveU")){
|
||||||
$("#"+id).removeClass("sortArrowActiveU");
|
$("#"+id).removeClass("sortArrowActiveU");
|
||||||
$("#"+id).addClass("sortArrowActiveD");
|
$("#"+id).addClass("sortArrowActiveD");
|
||||||
/*$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
url: '<%= statistics_path %>' + '.js?type=' + id + '&order=desc&sub_category_id='+ sub_category_id,
|
||||||
url: '<%#= forums_path %>' + '.js?' + id + '=desc&page='+<%#= @topic_pages.page%>
|
dataType: "script"
|
||||||
|
});
|
||||||
});*/
|
|
||||||
}else{
|
}else{
|
||||||
$("#"+id).addClass("sortArrowActiveD");
|
$("#"+id).addClass("sortArrowActiveD");
|
||||||
/*$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
url: '<%= statistics_path %>' + '.js?type=' + id + '&order=desc&sub_category_id=' + sub_category_id,
|
||||||
url: '<%#= forums_path %>' + '.js?' + id + '=desc&page='+<%#= @topic_pages.page%>
|
dataType: "script"
|
||||||
|
});
|
||||||
});*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
|
||||||
|
<%= javascript_include_tag '/editormd/lib/marked.min.js','/editormd/lib/prettify.min.js','/editormd/lib/raphael.min.js','/editormd/lib/underscore.min.js','/editormd/lib/sequence-diagram.min.js',
|
||||||
|
'/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js' %>
|
||||||
<div class="data_showdetail">
|
<div class="data_showdetail">
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
|
||||||
|
@ -32,5 +35,17 @@
|
||||||
<%= link_to '编辑', edit_statistic_path(@statistic) ,:class => "submit_btn" %>
|
<%= link_to '编辑', edit_statistic_path(@statistic) ,:class => "submit_btn" %>
|
||||||
<%= link_to '返回', statistics_path ,:class=>"grey_btn" %>
|
<%= link_to '返回', statistics_path ,:class=>"grey_btn" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
editormd.loadKaTeX(function() {
|
||||||
|
var taskPassMD = editormd.markdownToHTML("challenge_task_pass_show", {
|
||||||
|
htmlDecode: "style,script,iframe", // you can filter tags decode
|
||||||
|
taskList: true,
|
||||||
|
tex: true, // 默认不解析
|
||||||
|
flowChart: true, // 默认不解析
|
||||||
|
sequenceDiagram: true // 默认不解析
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -22,6 +22,9 @@ div.minHeight48{min-height: 48px;}
|
||||||
.upload_img img{max-width: 100%;}
|
.upload_img img{max-width: 100%;}
|
||||||
blockquote img{max-width: 100%;}
|
blockquote img{max-width: 100%;}
|
||||||
|
|
||||||
|
.zbg { background: url("/images/user/richEditer.png") -195px -2px no-repeat; height: 18px; cursor: pointer}
|
||||||
|
.zbg_latex { background: url("/images/user/richEditer.png") -315px -3px no-repeat;height: 18px;cursor: pointer;}
|
||||||
|
.latex{position:relative;top: 4px;}
|
||||||
.none{display: none;}
|
.none{display: none;}
|
||||||
.rside_back{ width:670px; margin-left:10px; background:#fff; margin-bottom:10px;}
|
.rside_back{ width:670px; margin-left:10px; background:#fff; margin-bottom:10px;}
|
||||||
.sub_btn{ cursor:pointer; -moz-border-radius:3px; -webkit-border-radius:3px; border:1px solid #707070; color:#000; border-radius:3px; padding:1px 10px; background:#dbdbdb;}
|
.sub_btn{ cursor:pointer; -moz-border-radius:3px; -webkit-border-radius:3px; border:1px solid #707070; color:#000; border-radius:3px; padding:1px 10px; background:#dbdbdb;}
|
||||||
|
|
Loading…
Reference in New Issue