#Debian安装MongoDB
-tags:Work
#安装 首先,添加key,在命令行里输入:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
<script src="jquery.js"></script> | |
<script src="jquery.colorbox.js"></script> | |
<script> window.colorbox_css_url = "path/to/colorbox.css"; </script> | |
<script src="my.js"></script> | |
上面的 HTML 代码都是在 PHP 里面 echo 出来的。 | |
第3行可能和问题无关,但是我不确定,所以也贴出来了。写第3行是因为: | |
我要在 my.js 里面把 <link href="path/to/colorbox.css"/> 添加到 head 里, | |
但是用相对路径就出错,我就把绝对路径用 PHP 输出在 HTML 里面了,然后绑在 window 上。 |
;(function( window, $ ){ | |
var dir = window.colorbox_plugin_url; | |
$('head').eq(0).append( | |
$('<link/>').attr({ | |
rel: 'stylesheet' | |
,href: dir + 'colorbox/colorbox.css' | |
}) | |
); |
一、专题页的全部文章都归于 special 分类。 | |
二、巴塞尔钟表展的相关文章,全部要添加 basaier 这个标签(Tag)。 | |
三、目前整个页面共分为 6 个段落(section),每个段落的文章都要添加与该段落相对应的 标签(Tag)。 | |
每个段落与其标签的对应关系如下: | |
段落标题 标签 | |
(1)图片轮播 section-1 | |
(2)专家观潮 section-2 |
#Debian安装MongoDB
-tags:Work
#安装 首先,添加key,在命令行里输入:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
手机版相关设置请看21城市网手机版常用设置
主要是针对首页,某些特定位置的文章需要按照一定规则来发布,才能准确显示在相应位置。
指显示在顶部导航栏下方、图片轮播上方的 4 条文章标题。
/** | |
* Sea.js 2.1.0 | seajs.org/LICENSE.md | |
*/ | |
(function(global, undefined) { | |
// Avoid conflicting when `sea.js` is loaded multiple times | |
if (global.seajs) { | |
return | |
} |
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).
First, ssh
to your server, and make sure you have Python and pip
installed. If you have Python but not pip
, install it using the following command
$ sudo apt-get install python3-pip
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |