anchor.diff:  	border-image:
   		url('<spring:message code="staticPath"></spring:message>/border-image.png')
   		25 repeat !important;
  +}
  +
  +#result-area {
  +	margin-top: 10px;
  +}
  +
  +.modal-body {
  +	height: 240px;
   }
   </style>
   
  
positive.code: 		</div>
  		<button id="clear" type="button" class="btn btn-sm btn-primary">清空上传列表</button>
  		&nbsp;
  
  		<ul id="fileList">
  		</ul>
  
  	</form>
  	<div id="message">
  		<ul>
  			<li>2014-07-02: 增加文件名搜索功能</li>
  			<li>2014-06-14: 图片使用域名"1.loli.io", 其余使用"2.loli.io"</li>
  			<li>2014-06-13: 登陆后可以查看并删除已上传的图片</li>
  
negative.code: 	</div>
  </div>
  
  <div class="modal fade" id="htmlSelect">
  	<div class="modal-dialog">
  		<div class="modal-content">
  			<div class="modal-header">
  				<button type="button" class="close" data-dismiss="modal">
  					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
  				</button>
  				<h4 class="modal-title">获取代码</h4>
  			</div>
  			<div class="modal-body">
  				<div class="btn-group" data-toggle="buttons">
  					<label class="btn btn-primary" id="url-btn"> <input
  						type="radio" name="options">URL
  					</label> <label class="btn btn-primary" id="html-btn"> <input
  						type="radio" name="options">HTML
  					</label> <label class="btn btn-primary" id="img-btn"> <input
  						type="radio" name="options">[img]
  					</label>
  				</div>
  				<textarea class="form-control col-md-6" rows="8" id="result-area">
  				</textarea>
  			</div>
  			<div class="modal-footer">
  				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  			</div>
  		</div>
  		<!-- /.modal-content -->
  	</div>
  	<!-- /.modal-dialog -->
  </div>
  <!-- /.modal -->
  
  <script>
      function getPaths() {
          var result = new Array();
          $(".path").each(function(i, e) {
              var h = $(this).text();
              if (h.indexOf("loli.io") >= 0) {
                  result.push(h);
              }
          });
  
          return result;
      }
  
      function getCode(prefix, suffix, array) {
          var html = "";
          for (var i = 0; i < array.length; i++) {
              var line = prefix;
              line += array[i];
              line += suffix;
              html += line;
          }
          return html;
      }
      $(document).ready(function() {
          $("#url-btn").click(function() {
              $("#result-area").html("");
              var result = getPaths();
              var html = getCode("", "\n", result);
              $("#result-area").html(html);
          });
          $("#html-btn").click(function() {
              $("#result-area").html("");
              var result = getPaths();
              var html = getCode("<img src='", "'>\n", result);
              $("#result-area").html(html);
          });
          $("#img-btn").click(function() {
              $("#result-area").html("");
              var result = getPaths();
              var html = getCode("[img]", "[/img]\n", result);
              $("#result-area").html(html);
          });
      });
  </script>
  
  <script
  	src="<spring:message code="staticPath"></spring:message>/jquery.knob.js"></script>
  