├── config.js ├── entrypoint.sh ├── Dockerfile ├── package.json ├── README.md ├── views └── index.html ├── server.js ├── public └── css.css └── LICENSE /config.js: -------------------------------------------------------------------------------- 1 | var config = { 2 | token : 'yourtoken', 3 | secret : 'yoursecret', 4 | is_cron : 'yourcron', 5 | 6 | cache : true,//启动缓存 7 | cache_timeout: 1000 * 60 * 10,//缓存时间单位毫秒 8 | 9 | } 10 | module.exports = config; 11 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sed -ri 's/yourtoken/'$TOKEN'/g' /Arukas-API/config.js && \ 3 | sed -ri 's/yoursecret/'$SECRET'/g' /Arukas-API/config.js && \ 4 | sed -ri 's/yourcron/'$IS_CRON'/g' /Arukas-API/config.js 5 | 6 | cd /Arukas-API 7 | npm install 8 | npm start 9 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Arukas-API 2 | FROM node:latest 3 | MAINTAINER malaohu 4 | RUN apt-get clean all 5 | RUN apt-get update 6 | RUN apt-get -y install git 7 | RUN git clone https://github.com/malaohu/Arukas-API.git /Arukas-API 8 | RUN chmod +x /Arukas-API/entrypoint.sh 9 | EXPOSE 13999 10 | ENTRYPOINT ["/Arukas-API/entrypoint.sh"] 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Arukas-API", 3 | "version": "1.1.0", 4 | "author": "malaohu", 5 | "license": "GPL-2.0", 6 | "description": "Arukas API For Test", 7 | "script":{ 8 | "start": "node ./server.js", 9 | "test": "echo \"Error: no test specified\" && exit 1" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/malaohu/Arukas-API.git" 14 | }, 15 | "dependencies": { 16 | "express": "4.*", 17 | "ejs": "*", 18 | "superagent":"*", 19 | "async":"*", 20 | "cron":"*", 21 | "memory-cache":"*" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 重要说明 2 | 3 | 由于Arukas测试期延长至7月底,(http://51.ruyo.net/p/4331.html ) 7月底将清理所有账户。 4 | 5 | 本代码也停止更新了,等日后看 Arukas 的策略。 6 | 7 | 8 | 9 | # 更新说明 10 | 11 | * 2017年7月13日:支持删除重建APP,定时(2分钟一次)监测发现APP没有启动会发送启动命令,连续3次启动失败会删除重建。 12 | 13 | * 2017年7月11日:修复了Dockerfile,新增了新建SSR接口和删除所以APP接口。 14 | 15 | * 2017年7月6日:不再支持 node server.js token secret 1 方式启动。需要修改config.js配置文件,填写 token 和 secret。已经兼容到最新版本的SSR订阅格式。 16 | 17 | 18 | # 特别说明 19 | 20 | 本分支代码不是部署 SSR/SS 21 | 22 | SS: https://github.com/malaohu/ss-with-net-speeder 23 | 24 | SSR: https://github.com/malaohu/ssr-with-net-speeder 25 | 26 | 27 | # 关于项目 28 | 本分支是部署一个WEB项目采用Nodejs编码,实时自动获取Arukas的Ip和Port的。 29 | 30 | 演示地址:http://arukas.somecolor.cc/ 31 | 32 | 演示站点使用的账号已经被冻结无法使用。尽量自己使用,不要轻易分享给其他人。 33 | 34 | 35 | # 安装部署 36 | 37 | ## 源码部署 38 | ``` 39 | git clone https://github.com/malaohu/Arukas-API 40 | cd Arukas-API 41 | npm install 42 | # 修改 config.js 填写你的token 和 secret 43 | node server.js 44 | ``` 45 | 然后访问:ip:13999 即可 46 | 47 | 48 | 49 | ## Docker部署 50 | ``` 51 | docker run --name arukas-api -p 13999:13999 -e 'TOKEN=token' -e 'SECRET=secret' -e 'IS_CRON=1' -d malaohu/arukas-api 52 | 53 | ``` 54 | 55 | 56 | ``` 57 | 镜像:malaohu/arukas-api 58 | 端口:13999 TCP 59 | 环境变量(ENV):TOKEN=token SECRET=secret IS_CRON=1 60 | 61 | ``` 62 | 63 | ## 环境变量(ENV) 64 | TOKEN 和 SECRET 获取地址:https://app.arukas.io/settings/api-keys 65 | 66 | IS_CRON 传 0 或者 1 67 | 是否启动自动启动服务功能,0是不启动,1是启动。 68 | 该服务会每5分钟检测当前账户下所有APP运行状态,如果APP没有启动,会发送一个启动命令。 69 | 70 | 71 | ## 功能介绍 72 | * 实时获取IP和端口,以及SS(R)的配置信息 73 | * 检查APP运行情况,没有启动的发送启动命令(支持手动请求) 74 | 75 | ## 请求地址 76 | * http://ip:13999 77 | * http://ip:13999/ssr/subscribe/10 SSR订阅地址。 78 | * http://ip:13999/check/status/token 手动检查服务运行状态,没有启动服务,发送启动命令。 79 | * http://ip:13999/install/deleteall/token 删除所有APP,必须携带token请求。 80 | * http://ip:13999/install/ssr/token 部署一个SSR,必须携带token请求,不支持自定义参数。如果创建失败请检查是不是APP达到创建上限。 81 | 82 | 83 | ## 可识别的SS(R)镜像 84 | 85 | */ssr-with-net-speeder 86 | 87 | */ss-with-net-speeder 88 | 89 | */shadowsocksr-docker 90 | -------------------------------------------------------------------------------- /views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Arukas Share Shadowsocks(R) 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |

Arukas Share Shadowsocks(R)

17 |
18 |
19 |

20 | 以下IP和PORT会不定期变化!请注意更新。点击【点击查看配置】可获取单个节点的详细信息。 21 |

22 | 23 | 24 | 25 |

26 |
27 | <% for(var i=0;i < data.length; i++) { %> 28 |
29 | SS(R)账号信息 ↓↓: 点击查看配置 30 |
31 |
32 | 33 | 34 | 35 |
36 | 37 |
38 | <% if(data[i].protocol && data[i].obfs){%> 39 |
40 | <%}else{%> 41 |
42 | <%}%> 43 |
44 |
45 |
46 | <% } %> 47 |
48 | 49 |
50 | 71 |
72 | 73 | 74 | 75 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var superagent = require('superagent'); 3 | var async = require('async'); 4 | var ejs = require('ejs'); 5 | var cronJob = require("cron").CronJob; 6 | var cache = require('memory-cache'); 7 | var config = require('./config'); 8 | 9 | 10 | var app = express(); 11 | app.use(express.static(__dirname + '/public')); 12 | app.engine('.html', require('ejs').__express); 13 | app.set('view engine', 'html'); 14 | app.set('views', __dirname + '/views'); 15 | var args = process.argv.slice(2); 16 | var token = '', secret = '',is_cron,appid='all'; 17 | 18 | 19 | token = config.token; 20 | secret = config.secret; 21 | is_cron = config.is_cron; 22 | is_cache = config.cache; 23 | cache_timeout = config.cache_timeout; 24 | 25 | var reg_images = /^[^\/]+\/(ssr?-with-net-speeder||shadowsocksr-docker)(:[^ ]+)?$/i 26 | var max_count = 3; 27 | 28 | app.get('/', function (req, res) { 29 | getit(appid, function (err, data) { 30 | if (err || !data) 31 | res.send('没有查询到数据。请检查node启动参数是否正确。更多内容请访问:https://github.com/malaohu/Arukas-API'); 32 | else 33 | res.render('./index.html', { "data": data || [] }); 34 | }) 35 | }); 36 | 37 | app.get('/:appid', function (req, res) { 38 | var _appid = req.params.appid; 39 | get_containers_info(_appid, function (err, data) { 40 | if (!err) 41 | return get_ss_data(appid, [data], function (err, data) { 42 | res.send(data); 43 | }); 44 | else 45 | res.send('can not find app_id!'); 46 | }) 47 | }) 48 | 49 | //检查所有APP的状态,发现启动失败的,发送启动命令。 50 | app.get('/check/status/:token', function (req, res) { 51 | var _token = req.params.token; 52 | if(_token != token) 53 | return res.send('非法请求'); 54 | check_status(function(log){ 55 | res.send('
' +log.join('
')+'
'); 56 | }) 57 | }); 58 | 59 | //删除所有APP 60 | app.get('/install/deleteall/:token',function(req,res){ 61 | var _token = req.params.token; 62 | if(_token != token) 63 | return res.send('非法请求'); 64 | delete_all_app_info(function(){ 65 | return res.send('命令执行完毕'); 66 | }) 67 | 68 | }); 69 | 70 | //创建一个SSR 71 | app.get('/install/ssr/:token',function(req,res){ 72 | var _token = req.params.token; 73 | if(_token != token) 74 | return res.send('非法请求'); 75 | build_ssr_app(function(error,data){ 76 | if(error) 77 | return res.send('创建失败 ' + error); 78 | else 79 | return res.send('创建成功'); 80 | }); 81 | }) 82 | 83 | //获取SSR订阅地址 84 | //4.4.0+ 版本 85 | //说明文档:https://github.com/breakwa11/shadowsocks-rss/wiki/Subscribe-%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AE%A2%E9%98%85%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3 86 | app.get('/ssr/subscribe/:max',function(req,res){ 87 | access_log(req); 88 | var max = parseInt(req.params.max); 89 | getit('all',function(e,data){ 90 | var res_arr = [],max_str; 91 | for(var i = 0; i < data.length; i++) 92 | if(data[i].protocol) 93 | res_arr.push(build_ssh(data[i])) 94 | if(res_arr.length < max) 95 | max_str = 'MAX=' + res_arr.length; 96 | else 97 | max_str = 'MAX=' + max; 98 | res.send(bulid_base64(max_str + '\n' + res_arr.join('\n'))) 99 | }); 100 | }); 101 | 102 | 103 | //启动服务监控每5分钟执行一次 104 | if (is_cron == 1){ 105 | new cronJob('*/2 * * * *', function () { 106 | check_status(function(log){ 107 | console.log(log); 108 | }); 109 | }, null, true, 'Asia/Chongqing'); 110 | console.log('启动服务监控'); 111 | } 112 | 113 | function getit(appid, callback) { 114 | get_all_containers_info(function (err, data) { 115 | if (!err) 116 | return get_ss_data(appid, data, callback); 117 | else 118 | return callback(err, null); 119 | }); 120 | } 121 | 122 | //发送API请求 123 | function arukas_request(commond_url, methond, data, callback) { 124 | commond_url = "https://app.arukas.io/api/" + commond_url; 125 | var _request = superagent.get; 126 | switch (methond) { 127 | case "POST": 128 | _request = superagent.post; 129 | break; 130 | case "DELETE": 131 | _request = superagent.delete; 132 | break; 133 | default: 134 | _request = superagent.get; 135 | break; 136 | 137 | } 138 | 139 | _request(commond_url) 140 | .auth(token, secret, { type: 'auto' }) 141 | .set('Content-Type', 'application/vnd.api+json') 142 | .set('Accept', 'application/vnd.api+json') 143 | .send(data) 144 | .end(function (err, sres) { 145 | if(err) 146 | return callback(err,null); 147 | else 148 | return callback(err, sres.body.data); 149 | }); 150 | } 151 | 152 | 153 | //通过API Token 获取信息 154 | function getit_by_token(appid, callback) { 155 | superagent.get("https://app.arukas.io/api/containers").auth(token, secret, { type: 'auto' }) 156 | .end(function (err, sres) { 157 | var data = sres.body.data; 158 | if (err) 159 | return callback(err, null); 160 | else 161 | return deal_data(appid, sres.body.data, callback); 162 | }); 163 | } 164 | 165 | function get_all_app_info(callback){ 166 | arukas_request("apps", "GET",'', function (err, body) { 167 | return callback(err, body); 168 | }); 169 | } 170 | 171 | function delete_all_app_info(callback){ 172 | get_all_app_info(function(error,data){ 173 | async.each(data,function(jsn,cb){ 174 | send_remove_commond(jsn.id,function(err){console.log(err);cb();}); 175 | },function(){ 176 | callback(); 177 | }); 178 | }); 179 | } 180 | 181 | //删除App 182 | function delete_app_info(appid,callback){ 183 | send_remove_commond(appid,callback); 184 | } 185 | 186 | function get_all_containers_info(callback) { 187 | var _body = null; 188 | if(is_cache) 189 | _body = cache.get('all_containers_info'); 190 | if(_body){ 191 | console.log('all_containers_info get from cache'); 192 | return callback(null, _body); 193 | } 194 | else 195 | arukas_request("containers", "GET",'', function (err, body) { 196 | //做缓存处理 197 | if(!err && is_cache){ 198 | cache.put('all_containers_info', body, cache_timeout, function(key, value) { 199 | console.log('put cache key: ['+ key + '] value:' + value); 200 | }); 201 | } 202 | console.log('all_containers_info get from api'); 203 | return callback(err, body); 204 | }) 205 | } 206 | 207 | function get_containers_info(app_id, callback) { 208 | arukas_request("containers", "GET",'', function (err, body) { 209 | for (var i = 0; i < body.length; i++) { 210 | if (body[i].id == app_id) 211 | return callback('', body[i]) 212 | } 213 | return callback('can not find app_id!', null); 214 | }) 215 | } 216 | 217 | //发送启动命令 218 | function send_start_command(appid, callback) { 219 | var commond = 'containers/' + appid + '/power'; 220 | return arukas_request(commond, 'POST','', callback); 221 | } 222 | 223 | //发送删除命令 224 | function send_remove_commond(app_id,callback){ 225 | var commond = 'apps/' + app_id; 226 | return arukas_request(commond, 'DELETE','', callback); 227 | } 228 | 229 | //发送创建命令 230 | function send_create_commond(data,callback){ 231 | var commond = 'app-sets' 232 | return arukas_request(commond, 'POST',data, callback); 233 | } 234 | 235 | //创建一个SSR 236 | function build_ssr_app(callback){ 237 | var jsn = 238 | { 239 | data: 240 | [ 241 | { 242 | "type": "containers", 243 | "attributes": { 244 | "image_name": "malaohu/ssr-with-net-speeder", 245 | "instances": 1, 246 | "mem": 512, 247 | "cmd": "-s 0.0.0.0 -p 8989 -k RUYO.net -m rc4-md5 -o http_simple -O origin", 248 | "envs": [], 249 | "ports": [ 250 | { 251 | "number": 8989, 252 | "protocol": "tcp" 253 | } 254 | ], 255 | "arukas_domain":"", 256 | 257 | }, 258 | }, 259 | { 260 | "type": "apps", 261 | "attributes": { 262 | "name": "malaohu/ssr-with-net-speeder" 263 | } 264 | } 265 | ] 266 | }; 267 | send_create_commond(jsn,callback); 268 | 269 | } 270 | 271 | function get_app_build_jsn(jsn){ 272 | var jsn = JSON.parse(JSON.stringify(jsn)); 273 | var new_jsn = 274 | { 275 | data : 276 | [ 277 | { 278 | "type": jsn.type, 279 | "attributes": { 280 | "image_name" : jsn.attributes.image_name, 281 | "instances": jsn.attributes.instances, 282 | "mem": jsn.attributes.mem, 283 | "envs": jsn.attributes.env, 284 | "ports": jsn.attributes.ports, 285 | "arukas_domain":"" 286 | } 287 | }, 288 | { 289 | "type": "apps", 290 | "attributes": { 291 | "name": jsn.attributes.image_name 292 | } 293 | } 294 | 295 | ] 296 | } 297 | 298 | return new_jsn; 299 | } 300 | 301 | 302 | //处理结果信息 303 | function get_ss_data(_appid, data, callback) { 304 | var ret_list = []; 305 | for (var i = 0; i < data.length; i++) { 306 | if (data[i].id == _appid || (_appid == 'all' && reg_images.test(data[i].attributes.image_name))) { 307 | var jn = data[i]; 308 | if (!jn.attributes.port_mappings) 309 | continue; 310 | for (var j = 0; j < jn.attributes.port_mappings.length; j++) { 311 | var host = jn.attributes.port_mappings[j][0].host; 312 | var ip = host.substring(6, host.indexOf(".")).replace(/-/g, "."); 313 | var service_port = jn.attributes.port_mappings[j][0].service_port; 314 | var container_port = jn.attributes.port_mappings[j][0].container_port; 315 | var cmd = jn.attributes.cmd; 316 | var ss_method = '', ss_password = '', ss_port = '', ss_protocol = '', ss_obfs = ''; 317 | //try to get ss method 318 | if (/-m\s+([^ ]+)/.test(cmd)) 319 | ss_method = RegExp.$1; 320 | //try to get ss password 321 | if (/-k\s+([^ ]+)/.test(cmd)) 322 | ss_password = RegExp.$1; 323 | //try to get ss port 324 | if (/-p\s+([^ ]+)/.test(cmd)) 325 | ss_port = RegExp.$1; 326 | //try to get ssr protocol 327 | if (/-O\s+([^ ]+)/.test(cmd)) 328 | ss_protocol = RegExp.$1; 329 | //try to get ssr obfs 330 | if (/-o\s+([^ ]+)/.test(cmd)) 331 | ss_obfs = RegExp.$1; 332 | if (ss_port == container_port) { 333 | var ret_json = { "appid": data[i].id, "server": ip, "server_port": service_port, "password": ss_password, "method": ss_method }; 334 | if (ss_protocol && ss_obfs) { 335 | ret_json["protocol"] = ss_protocol; 336 | ret_json["obfs"] = ss_obfs; 337 | } 338 | ret_list.push(ret_json); 339 | } 340 | } 341 | } 342 | } 343 | return callback(null, ret_list); 344 | } 345 | 346 | //创建SSR的ssh链接 347 | function build_ssh(obj){ 348 | var group_name = 'Arukas-SSR'; 349 | var group_name_base64 = 'QXJ1a2FzLVNTUg'; 350 | var remark = 'RUYO.net'; 351 | var remark_base64 = 'UlVZTy5uZXQ'; 352 | if(!obj) 353 | return null 354 | var pwd_base64 = bulid_base64(obj.password); 355 | return 'ssr://' + bulid_base64(obj.server + ':' + obj.server_port + ':' + obj.protocol +':' + obj.method + ':' + obj.obfs + ':' + pwd_base64 356 | + '/?obfsparam=&remarks=' + remark_base64 + '&group='+group_name_base64); 357 | } 358 | 359 | function check_status(callback){ 360 | get_all_containers_info(function (err, data) { 361 | var log = ['开始检查APP运行情况 : ' + new Date()]; 362 | async.eachSeries(data, function (_data, cb) { 363 | if (!_data.attributes.is_running) { 364 | log.push(''); 365 | log.push('[' + _data.id + '] - 没有正常运行'); 366 | var app_key = 'app'+ _data.attributes.app_id; 367 | var count = cache.get(app_key) || 0; 368 | count++; 369 | console.log(app_key + ' ' + count); 370 | //如果启动次数超过最大值,直接删除APP 371 | if(count >= max_count) 372 | { 373 | var jsn = get_app_build_jsn(_data); 374 | return delete_app_info(_data.attributes.app_id,function(err){ 375 | send_create_commond(jsn,function(err){ 376 | log.push('[' + _data.attributes.app_id + '] - 已经删除且重建'); 377 | cb(null); 378 | }); 379 | }) 380 | }else{ 381 | cache.put(app_key,count,(1000 * 60 * 60 * 2) , function(key, value) { 382 | console.log('put cache key: ['+ key + '] value:' + value); 383 | }); 384 | send_start_command(_data.id, function (err, body) { 385 | //无法启动的APP,直接重建 386 | if(err && err == 'Error: Unprocessable Entity'){ 387 | var jsn = get_app_build_jsn(_data); 388 | return delete_app_info(_data.attributes.app_id,function(err){ 389 | send_create_commond(jsn,function(err){ 390 | log.push('[' + _data.attributes.app_id + '] - 已经删除且重建'); 391 | cb(null); 392 | }); 393 | }) 394 | } 395 | if (err) 396 | log.push('[' + _data.attributes.app_id + '] - 启动失败:' + err); 397 | else 398 | log.push('[' + _data.attributes.app_id + '] - 启动命令已发送'); 399 | cb(null); 400 | }); 401 | } 402 | 403 | } else 404 | cb(null); 405 | }, 406 | function (err, result) { 407 | callback(log); 408 | }) 409 | }) 410 | } 411 | 412 | function access_log(req) 413 | { 414 | var getClientIP = function(){ 415 | var ipAddress; 416 | var headers = req.headers; 417 | var forwardedIpsStr = headers['x-real-ip'] || headers['x-forwarded-for']; 418 | forwardedIpsStr ? ipAddress = forwardedIpsStr : ipAddress = null; 419 | if (!ipAddress){ 420 | ipAddress = req.connection.remoteAddress; 421 | } 422 | return ipAddress; 423 | } 424 | console.log(new Date() + ' ' + getClientIP() + ' ' + req.url); 425 | } 426 | 427 | function bulid_base64(str) 428 | { 429 | return new Buffer(str).toString('base64').replace(/=+$/,''); 430 | } 431 | 432 | app.listen(13999, function () { 433 | console.log('Example app listening on port 13999'); 434 | console.log('token : ' + token); 435 | console.log('secret : ' + secret); 436 | console.log('is_cron : ' + is_cron); 437 | }) 438 | -------------------------------------------------------------------------------- /public/css.css: -------------------------------------------------------------------------------- 1 | 2 | @media screen and (min-width: 35.5em) { 3 | .u-sm-1, 4 | .u-sm-1-1, 5 | .u-sm-1-2, 6 | .u-sm-1-3, 7 | .u-sm-2-3, 8 | .u-sm-1-4, 9 | .u-sm-3-4, 10 | .u-sm-1-5, 11 | .u-sm-2-5, 12 | .u-sm-3-5, 13 | .u-sm-4-5, 14 | .u-sm-5-5, 15 | .u-sm-1-6, 16 | .u-sm-5-6, 17 | .u-sm-1-8, 18 | .u-sm-3-8, 19 | .u-sm-5-8, 20 | .u-sm-7-8, 21 | .u-sm-1-12, 22 | .u-sm-5-12, 23 | .u-sm-7-12, 24 | .u-sm-11-12, 25 | .u-sm-1-24, 26 | .u-sm-2-24, 27 | .u-sm-3-24, 28 | .u-sm-4-24, 29 | .u-sm-5-24, 30 | .u-sm-6-24, 31 | .u-sm-7-24, 32 | .u-sm-8-24, 33 | .u-sm-9-24, 34 | .u-sm-10-24, 35 | .u-sm-11-24, 36 | .u-sm-12-24, 37 | .u-sm-13-24, 38 | .u-sm-14-24, 39 | .u-sm-15-24, 40 | .u-sm-16-24, 41 | .u-sm-17-24, 42 | .u-sm-18-24, 43 | .u-sm-19-24, 44 | .u-sm-20-24, 45 | .u-sm-21-24, 46 | .u-sm-22-24, 47 | .u-sm-23-24, 48 | .u-sm-24-24 { 49 | display: inline-block; 50 | *display: inline; 51 | zoom: 1; 52 | letter-spacing: normal; 53 | word-spacing: normal; 54 | vertical-align: top; 55 | text-rendering: auto; 56 | } 57 | 58 | .u-sm-1-24 { 59 | width: 4.1667%; 60 | *width: 4.1357%; 61 | } 62 | 63 | .u-sm-1-12, 64 | .u-sm-2-24 { 65 | width: 8.3333%; 66 | *width: 8.3023%; 67 | } 68 | 69 | .u-sm-1-8, 70 | .u-sm-3-24 { 71 | width: 12.5000%; 72 | *width: 12.4690%; 73 | } 74 | 75 | .u-sm-1-6, 76 | .u-sm-4-24 { 77 | width: 16.6667%; 78 | *width: 16.6357%; 79 | } 80 | 81 | .u-sm-1-5 { 82 | width: 20%; 83 | *width: 19.9690%; 84 | } 85 | 86 | .u-sm-5-24 { 87 | width: 20.8333%; 88 | *width: 20.8023%; 89 | } 90 | 91 | .u-sm-1-4, 92 | .u-sm-6-24 { 93 | width: 25%; 94 | *width: 24.9690%; 95 | } 96 | 97 | .u-sm-7-24 { 98 | width: 29.1667%; 99 | *width: 29.1357%; 100 | } 101 | 102 | .u-sm-1-3, 103 | .u-sm-8-24 { 104 | width: 33.3333%; 105 | *width: 33.3023%; 106 | } 107 | 108 | .u-sm-3-8, 109 | .u-sm-9-24 { 110 | width: 37.5000%; 111 | *width: 37.4690%; 112 | } 113 | 114 | .u-sm-2-5 { 115 | width: 40%; 116 | *width: 39.9690%; 117 | } 118 | 119 | .u-sm-5-12, 120 | .u-sm-10-24 { 121 | width: 41.6667%; 122 | *width: 41.6357%; 123 | } 124 | 125 | .u-sm-11-24 { 126 | width: 45.8333%; 127 | *width: 45.8023%; 128 | } 129 | 130 | .u-sm-1-2, 131 | .u-sm-12-24 { 132 | width: 50%; 133 | *width: 49.9690%; 134 | } 135 | 136 | .u-sm-13-24 { 137 | width: 54.1667%; 138 | *width: 54.1357%; 139 | } 140 | 141 | .u-sm-7-12, 142 | .u-sm-14-24 { 143 | width: 58.3333%; 144 | *width: 58.3023%; 145 | } 146 | 147 | .u-sm-3-5 { 148 | width: 60%; 149 | *width: 59.9690%; 150 | } 151 | 152 | .u-sm-5-8, 153 | .u-sm-15-24 { 154 | width: 62.5000%; 155 | *width: 62.4690%; 156 | } 157 | 158 | .u-sm-2-3, 159 | .u-sm-16-24 { 160 | width: 66.6667%; 161 | *width: 66.6357%; 162 | } 163 | 164 | .u-sm-17-24 { 165 | width: 70.8333%; 166 | *width: 70.8023%; 167 | } 168 | 169 | .u-sm-3-4, 170 | .u-sm-18-24 { 171 | width: 75%; 172 | *width: 74.9690%; 173 | } 174 | 175 | .u-sm-19-24 { 176 | width: 79.1667%; 177 | *width: 79.1357%; 178 | } 179 | 180 | .u-sm-4-5 { 181 | width: 80%; 182 | *width: 79.9690%; 183 | } 184 | 185 | .u-sm-5-6, 186 | .u-sm-20-24 { 187 | width: 83.3333%; 188 | *width: 83.3023%; 189 | } 190 | 191 | .u-sm-7-8, 192 | .u-sm-21-24 { 193 | width: 87.5000%; 194 | *width: 87.4690%; 195 | } 196 | 197 | .u-sm-11-12, 198 | .u-sm-22-24 { 199 | width: 91.6667%; 200 | *width: 91.6357%; 201 | } 202 | 203 | .u-sm-23-24 { 204 | width: 95.8333%; 205 | *width: 95.8023%; 206 | } 207 | 208 | .u-sm-1, 209 | .u-sm-1-1, 210 | .u-sm-5-5, 211 | .u-sm-24-24 { 212 | width: 100%; 213 | } 214 | } 215 | 216 | @media screen and (min-width: 48em) { 217 | .u-md-1, 218 | .u-md-1-1, 219 | .u-md-1-2, 220 | .u-md-1-3, 221 | .u-md-2-3, 222 | .u-md-1-4, 223 | .u-md-3-4, 224 | .u-md-1-5, 225 | .u-md-2-5, 226 | .u-md-3-5, 227 | .u-md-4-5, 228 | .u-md-5-5, 229 | .u-md-1-6, 230 | .u-md-5-6, 231 | .u-md-1-8, 232 | .u-md-3-8, 233 | .u-md-5-8, 234 | .u-md-7-8, 235 | .u-md-1-12, 236 | .u-md-5-12, 237 | .u-md-7-12, 238 | .u-md-11-12, 239 | .u-md-1-24, 240 | .u-md-2-24, 241 | .u-md-3-24, 242 | .u-md-4-24, 243 | .u-md-5-24, 244 | .u-md-6-24, 245 | .u-md-7-24, 246 | .u-md-8-24, 247 | .u-md-9-24, 248 | .u-md-10-24, 249 | .u-md-11-24, 250 | .u-md-12-24, 251 | .u-md-13-24, 252 | .u-md-14-24, 253 | .u-md-15-24, 254 | .u-md-16-24, 255 | .u-md-17-24, 256 | .u-md-18-24, 257 | .u-md-19-24, 258 | .u-md-20-24, 259 | .u-md-21-24, 260 | .u-md-22-24, 261 | .u-md-23-24, 262 | .u-md-24-24 { 263 | display: inline-block; 264 | *display: inline; 265 | zoom: 1; 266 | letter-spacing: normal; 267 | word-spacing: normal; 268 | vertical-align: top; 269 | text-rendering: auto; 270 | } 271 | 272 | .u-md-1-24 { 273 | width: 4.1667%; 274 | *width: 4.1357%; 275 | } 276 | 277 | .u-md-1-12, 278 | .u-md-2-24 { 279 | width: 8.3333%; 280 | *width: 8.3023%; 281 | } 282 | 283 | .u-md-1-8, 284 | .u-md-3-24 { 285 | width: 12.5000%; 286 | *width: 12.4690%; 287 | } 288 | 289 | .u-md-1-6, 290 | .u-md-4-24 { 291 | width: 16.6667%; 292 | *width: 16.6357%; 293 | } 294 | 295 | .u-md-1-5 { 296 | width: 20%; 297 | *width: 19.9690%; 298 | } 299 | 300 | .u-md-5-24 { 301 | width: 20.8333%; 302 | *width: 20.8023%; 303 | } 304 | 305 | .u-md-1-4, 306 | .u-md-6-24 { 307 | width: 25%; 308 | *width: 24.9690%; 309 | } 310 | 311 | .u-md-7-24 { 312 | width: 29.1667%; 313 | *width: 29.1357%; 314 | } 315 | 316 | .u-md-1-3, 317 | .u-md-8-24 { 318 | width: 33.3333%; 319 | *width: 33.3023%; 320 | } 321 | 322 | .u-md-3-8, 323 | .u-md-9-24 { 324 | width: 37.5000%; 325 | *width: 37.4690%; 326 | } 327 | 328 | .u-md-2-5 { 329 | width: 40%; 330 | *width: 39.9690%; 331 | } 332 | 333 | .u-md-5-12, 334 | .u-md-10-24 { 335 | width: 41.6667%; 336 | *width: 41.6357%; 337 | } 338 | 339 | .u-md-11-24 { 340 | width: 45.8333%; 341 | *width: 45.8023%; 342 | } 343 | 344 | .u-md-1-2, 345 | .u-md-12-24 { 346 | width: 50%; 347 | *width: 49.9690%; 348 | } 349 | 350 | .u-md-13-24 { 351 | width: 54.1667%; 352 | *width: 54.1357%; 353 | } 354 | 355 | .u-md-7-12, 356 | .u-md-14-24 { 357 | width: 58.3333%; 358 | *width: 58.3023%; 359 | } 360 | 361 | .u-md-3-5 { 362 | width: 60%; 363 | *width: 59.9690%; 364 | } 365 | 366 | .u-md-5-8, 367 | .u-md-15-24 { 368 | width: 62.5000%; 369 | *width: 62.4690%; 370 | } 371 | 372 | .u-md-2-3, 373 | .u-md-16-24 { 374 | width: 66.6667%; 375 | *width: 66.6357%; 376 | } 377 | 378 | .u-md-17-24 { 379 | width: 70.8333%; 380 | *width: 70.8023%; 381 | } 382 | 383 | .u-md-3-4, 384 | .u-md-18-24 { 385 | width: 75%; 386 | *width: 74.9690%; 387 | } 388 | 389 | .u-md-19-24 { 390 | width: 79.1667%; 391 | *width: 79.1357%; 392 | } 393 | 394 | .u-md-4-5 { 395 | width: 80%; 396 | *width: 79.9690%; 397 | } 398 | 399 | .u-md-5-6, 400 | .u-md-20-24 { 401 | width: 83.3333%; 402 | *width: 83.3023%; 403 | } 404 | 405 | .u-md-7-8, 406 | .u-md-21-24 { 407 | width: 87.5000%; 408 | *width: 87.4690%; 409 | } 410 | 411 | .u-md-11-12, 412 | .u-md-22-24 { 413 | width: 91.6667%; 414 | *width: 91.6357%; 415 | } 416 | 417 | .u-md-23-24 { 418 | width: 95.8333%; 419 | *width: 95.8023%; 420 | } 421 | 422 | .u-md-1, 423 | .u-md-1-1, 424 | .u-md-5-5, 425 | .u-md-24-24 { 426 | width: 100%; 427 | } 428 | } 429 | 430 | @media screen and (min-width: 58em) { 431 | .u-lg-1, 432 | .u-lg-1-1, 433 | .u-lg-1-2, 434 | .u-lg-1-3, 435 | .u-lg-2-3, 436 | .u-lg-1-4, 437 | .u-lg-3-4, 438 | .u-lg-1-5, 439 | .u-lg-2-5, 440 | .u-lg-3-5, 441 | .u-lg-4-5, 442 | .u-lg-5-5, 443 | .u-lg-1-6, 444 | .u-lg-5-6, 445 | .u-lg-1-8, 446 | .u-lg-3-8, 447 | .u-lg-5-8, 448 | .u-lg-7-8, 449 | .u-lg-1-12, 450 | .u-lg-5-12, 451 | .u-lg-7-12, 452 | .u-lg-11-12, 453 | .u-lg-1-24, 454 | .u-lg-2-24, 455 | .u-lg-3-24, 456 | .u-lg-4-24, 457 | .u-lg-5-24, 458 | .u-lg-6-24, 459 | .u-lg-7-24, 460 | .u-lg-8-24, 461 | .u-lg-9-24, 462 | .u-lg-10-24, 463 | .u-lg-11-24, 464 | .u-lg-12-24, 465 | .u-lg-13-24, 466 | .u-lg-14-24, 467 | .u-lg-15-24, 468 | .u-lg-16-24, 469 | .u-lg-17-24, 470 | .u-lg-18-24, 471 | .u-lg-19-24, 472 | .u-lg-20-24, 473 | .u-lg-21-24, 474 | .u-lg-22-24, 475 | .u-lg-23-24, 476 | .u-lg-24-24 { 477 | display: inline-block; 478 | *display: inline; 479 | zoom: 1; 480 | letter-spacing: normal; 481 | word-spacing: normal; 482 | vertical-align: top; 483 | text-rendering: auto; 484 | } 485 | 486 | .u-lg-1-24 { 487 | width: 4.1667%; 488 | *width: 4.1357%; 489 | } 490 | 491 | .u-lg-1-12, 492 | .u-lg-2-24 { 493 | width: 8.3333%; 494 | *width: 8.3023%; 495 | } 496 | 497 | .u-lg-1-8, 498 | .u-lg-3-24 { 499 | width: 12.5000%; 500 | *width: 12.4690%; 501 | } 502 | 503 | .u-lg-1-6, 504 | .u-lg-4-24 { 505 | width: 16.6667%; 506 | *width: 16.6357%; 507 | } 508 | 509 | .u-lg-1-5 { 510 | width: 20%; 511 | *width: 19.9690%; 512 | } 513 | 514 | .u-lg-5-24 { 515 | width: 20.8333%; 516 | *width: 20.8023%; 517 | } 518 | 519 | .u-lg-1-4, 520 | .u-lg-6-24 { 521 | width: 25%; 522 | *width: 24.9690%; 523 | } 524 | 525 | .u-lg-7-24 { 526 | width: 29.1667%; 527 | *width: 29.1357%; 528 | } 529 | 530 | .u-lg-1-3, 531 | .u-lg-8-24 { 532 | width: 33.3333%; 533 | *width: 33.3023%; 534 | } 535 | 536 | .u-lg-3-8, 537 | .u-lg-9-24 { 538 | width: 37.5000%; 539 | *width: 37.4690%; 540 | } 541 | 542 | .u-lg-2-5 { 543 | width: 40%; 544 | *width: 39.9690%; 545 | } 546 | 547 | .u-lg-5-12, 548 | .u-lg-10-24 { 549 | width: 41.6667%; 550 | *width: 41.6357%; 551 | } 552 | 553 | .u-lg-11-24 { 554 | width: 45.8333%; 555 | *width: 45.8023%; 556 | } 557 | 558 | .u-lg-1-2, 559 | .u-lg-12-24 { 560 | width: 50%; 561 | *width: 49.9690%; 562 | } 563 | 564 | .u-lg-13-24 { 565 | width: 54.1667%; 566 | *width: 54.1357%; 567 | } 568 | 569 | .u-lg-7-12, 570 | .u-lg-14-24 { 571 | width: 58.3333%; 572 | *width: 58.3023%; 573 | } 574 | 575 | .u-lg-3-5 { 576 | width: 60%; 577 | *width: 59.9690%; 578 | } 579 | 580 | .u-lg-5-8, 581 | .u-lg-15-24 { 582 | width: 62.5000%; 583 | *width: 62.4690%; 584 | } 585 | 586 | .u-lg-2-3, 587 | .u-lg-16-24 { 588 | width: 66.6667%; 589 | *width: 66.6357%; 590 | } 591 | 592 | .u-lg-17-24 { 593 | width: 70.8333%; 594 | *width: 70.8023%; 595 | } 596 | 597 | .u-lg-3-4, 598 | .u-lg-18-24 { 599 | width: 75%; 600 | *width: 74.9690%; 601 | } 602 | 603 | .u-lg-19-24 { 604 | width: 79.1667%; 605 | *width: 79.1357%; 606 | } 607 | 608 | .u-lg-4-5 { 609 | width: 80%; 610 | *width: 79.9690%; 611 | } 612 | 613 | .u-lg-5-6, 614 | .u-lg-20-24 { 615 | width: 83.3333%; 616 | *width: 83.3023%; 617 | } 618 | 619 | .u-lg-7-8, 620 | .u-lg-21-24 { 621 | width: 87.5000%; 622 | *width: 87.4690%; 623 | } 624 | 625 | .u-lg-11-12, 626 | .u-lg-22-24 { 627 | width: 91.6667%; 628 | *width: 91.6357%; 629 | } 630 | 631 | .u-lg-23-24 { 632 | width: 95.8333%; 633 | *width: 95.8023%; 634 | } 635 | 636 | .u-lg-1, 637 | .u-lg-1-1, 638 | .u-lg-5-5, 639 | .u-lg-24-24 { 640 | width: 100%; 641 | } 642 | } 643 | 644 | @media screen and (min-width: 75em) { 645 | .u-xl-1, 646 | .u-xl-1-1, 647 | .u-xl-1-2, 648 | .u-xl-1-3, 649 | .u-xl-2-3, 650 | .u-xl-1-4, 651 | .u-xl-3-4, 652 | .u-xl-1-5, 653 | .u-xl-2-5, 654 | .u-xl-3-5, 655 | .u-xl-4-5, 656 | .u-xl-5-5, 657 | .u-xl-1-6, 658 | .u-xl-5-6, 659 | .u-xl-1-8, 660 | .u-xl-3-8, 661 | .u-xl-5-8, 662 | .u-xl-7-8, 663 | .u-xl-1-12, 664 | .u-xl-5-12, 665 | .u-xl-7-12, 666 | .u-xl-11-12, 667 | .u-xl-1-24, 668 | .u-xl-2-24, 669 | .u-xl-3-24, 670 | .u-xl-4-24, 671 | .u-xl-5-24, 672 | .u-xl-6-24, 673 | .u-xl-7-24, 674 | .u-xl-8-24, 675 | .u-xl-9-24, 676 | .u-xl-10-24, 677 | .u-xl-11-24, 678 | .u-xl-12-24, 679 | .u-xl-13-24, 680 | .u-xl-14-24, 681 | .u-xl-15-24, 682 | .u-xl-16-24, 683 | .u-xl-17-24, 684 | .u-xl-18-24, 685 | .u-xl-19-24, 686 | .u-xl-20-24, 687 | .u-xl-21-24, 688 | .u-xl-22-24, 689 | .u-xl-23-24, 690 | .u-xl-24-24 { 691 | display: inline-block; 692 | *display: inline; 693 | zoom: 1; 694 | letter-spacing: normal; 695 | word-spacing: normal; 696 | vertical-align: top; 697 | text-rendering: auto; 698 | } 699 | 700 | .u-xl-1-24 { 701 | width: 4.1667%; 702 | *width: 4.1357%; 703 | } 704 | 705 | .u-xl-1-12, 706 | .u-xl-2-24 { 707 | width: 8.3333%; 708 | *width: 8.3023%; 709 | } 710 | 711 | .u-xl-1-8, 712 | .u-xl-3-24 { 713 | width: 12.5000%; 714 | *width: 12.4690%; 715 | } 716 | 717 | .u-xl-1-6, 718 | .u-xl-4-24 { 719 | width: 16.6667%; 720 | *width: 16.6357%; 721 | } 722 | 723 | .u-xl-1-5 { 724 | width: 20%; 725 | *width: 19.9690%; 726 | } 727 | 728 | .u-xl-5-24 { 729 | width: 20.8333%; 730 | *width: 20.8023%; 731 | } 732 | 733 | .u-xl-1-4, 734 | .u-xl-6-24 { 735 | width: 25%; 736 | *width: 24.9690%; 737 | } 738 | 739 | .u-xl-7-24 { 740 | width: 29.1667%; 741 | *width: 29.1357%; 742 | } 743 | 744 | .u-xl-1-3, 745 | .u-xl-8-24 { 746 | width: 33.3333%; 747 | *width: 33.3023%; 748 | } 749 | 750 | .u-xl-3-8, 751 | .u-xl-9-24 { 752 | width: 37.5000%; 753 | *width: 37.4690%; 754 | } 755 | 756 | .u-xl-2-5 { 757 | width: 40%; 758 | *width: 39.9690%; 759 | } 760 | 761 | .u-xl-5-12, 762 | .u-xl-10-24 { 763 | width: 41.6667%; 764 | *width: 41.6357%; 765 | } 766 | 767 | .u-xl-11-24 { 768 | width: 45.8333%; 769 | *width: 45.8023%; 770 | } 771 | 772 | .u-xl-1-2, 773 | .u-xl-12-24 { 774 | width: 50%; 775 | *width: 49.9690%; 776 | } 777 | 778 | .u-xl-13-24 { 779 | width: 54.1667%; 780 | *width: 54.1357%; 781 | } 782 | 783 | .u-xl-7-12, 784 | .u-xl-14-24 { 785 | width: 58.3333%; 786 | *width: 58.3023%; 787 | } 788 | 789 | .u-xl-3-5 { 790 | width: 60%; 791 | *width: 59.9690%; 792 | } 793 | 794 | .u-xl-5-8, 795 | .u-xl-15-24 { 796 | width: 62.5000%; 797 | *width: 62.4690%; 798 | } 799 | 800 | .u-xl-2-3, 801 | .u-xl-16-24 { 802 | width: 66.6667%; 803 | *width: 66.6357%; 804 | } 805 | 806 | .u-xl-17-24 { 807 | width: 70.8333%; 808 | *width: 70.8023%; 809 | } 810 | 811 | .u-xl-3-4, 812 | .u-xl-18-24 { 813 | width: 75%; 814 | *width: 74.9690%; 815 | } 816 | 817 | .u-xl-19-24 { 818 | width: 79.1667%; 819 | *width: 79.1357%; 820 | } 821 | 822 | .u-xl-4-5 { 823 | width: 80%; 824 | *width: 79.9690%; 825 | } 826 | 827 | .u-xl-5-6, 828 | .u-xl-20-24 { 829 | width: 83.3333%; 830 | *width: 83.3023%; 831 | } 832 | 833 | .u-xl-7-8, 834 | .u-xl-21-24 { 835 | width: 87.5000%; 836 | *width: 87.4690%; 837 | } 838 | 839 | .u-xl-11-12, 840 | .u-xl-22-24 { 841 | width: 91.6667%; 842 | *width: 91.6357%; 843 | } 844 | 845 | .u-xl-23-24 { 846 | width: 95.8333%; 847 | *width: 95.8023%; 848 | } 849 | 850 | .u-xl-1, 851 | .u-xl-1-1, 852 | .u-xl-5-5, 853 | .u-xl-24-24 { 854 | width: 100%; 855 | } 856 | } 857 | * { 858 | -webkit-box-sizing: border-box; 859 | -moz-box-sizing: border-box; 860 | box-sizing: border-box; 861 | } 862 | 863 | *:before, 864 | *:after { 865 | -webkit-box-sizing: border-box; 866 | -moz-box-sizing: border-box; 867 | box-sizing: border-box; 868 | } 869 | 870 | html, button, input, select, textarea, 871 | .pure-g [class *= "pure-u"] { 872 | font-family: sans-serif; 873 | font-weight: 100; 874 | letter-spacing: 0.01em; 875 | } 876 | 877 | 878 | /* -------------------------- 879 | * Element Styles 880 | * -------------------------- 881 | */ 882 | 883 | body { 884 | min-width: 320px; 885 | color: #777; 886 | line-height: 1.6; 887 | } 888 | 889 | h1, h2, h3, h4, h5, h6 { 890 | font-weight: bold; 891 | color: rgb(75, 75, 75); 892 | } 893 | h3 { 894 | font-size: 1.25em; 895 | } 896 | h4 { 897 | font-size: 1.125em; 898 | } 899 | 900 | a { 901 | color: #3b8bba; /* block-background-text-normal */ 902 | text-decoration: none; 903 | } 904 | 905 | a:visited { 906 | color: #265778; /* block-normal-text-normal */ 907 | } 908 | 909 | dt { 910 | font-weight: bold; 911 | } 912 | dd { 913 | margin: 0 0 10px 0; 914 | } 915 | 916 | aside { 917 | background: #1f8dd6; /* same color as selected state on site menu */ 918 | padding: 0.3em 1em; 919 | border-radius: 3px; 920 | color: #fff; 921 | } 922 | aside a, aside a:visited { 923 | color: rgb(169, 226, 255); 924 | } 925 | 926 | 927 | /* -------------------------- 928 | * Layout Styles 929 | * -------------------------- 930 | */ 931 | 932 | /* Navigation Push Styles */ 933 | #layout { 934 | position: relative; 935 | padding-left: 0; 936 | } 937 | #layout.active #menu { 938 | left: 160px; 939 | width: 160px; 940 | } 941 | 942 | /* Apply the .box class on the immediate parent of any grid element (pure-u-*) to apply some padding. */ 943 | .l-box { 944 | padding: 1em; 945 | } 946 | 947 | .l-wrap { 948 | margin-left: auto; 949 | margin-right: auto; 950 | } 951 | .content .l-wrap { 952 | margin-left: -1em; 953 | margin-right: -1em; 954 | } 955 | 956 | 957 | /* -------------------------- 958 | * Header Module Styles 959 | * -------------------------- 960 | */ 961 | 962 | .header { 963 | font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif; 964 | max-width: 768px; 965 | margin: 0 auto; 966 | padding: 1em; 967 | text-align: center; 968 | border-bottom: 1px solid #eee; 969 | background: #fff; 970 | letter-spacing: 0.05em; 971 | } 972 | .header h1 { 973 | font-size: 300%; 974 | font-weight: 100; 975 | margin: 0; 976 | } 977 | .header h2 { 978 | font-size: 125%; 979 | font-weight: 100; 980 | line-height: 1.5; 981 | margin: 0; 982 | color: #666; 983 | letter-spacing: -0.02em; 984 | } 985 | 986 | 987 | /* -------------------------- 988 | * Content Module Styles 989 | * -------------------------- 990 | */ 991 | 992 | /* The content div is placed as a wrapper around all the docs */ 993 | .content { 994 | margin-left: auto; 995 | margin-right: auto; 996 | padding-left: 1em; 997 | padding-right: 1em; 998 | max-width: 768px; 999 | } 1000 | 1001 | .content .content-subhead { 1002 | margin: 2em 0 1em 0; 1003 | font-weight: 300; 1004 | color: #888; 1005 | position: relative; 1006 | } 1007 | 1008 | .content .content-spaced { 1009 | line-height: 1.8; 1010 | } 1011 | 1012 | .content .content-quote { 1013 | font-family: "Georgia", serif; 1014 | color: #666; 1015 | font-style: italic; 1016 | line-height: 1.8; 1017 | border-left: 5px solid #ddd; 1018 | padding-left: 1.5em; 1019 | } 1020 | 1021 | .content-link { 1022 | position: absolute; 1023 | top: 0; 1024 | right: 0; 1025 | display: block; 1026 | height: 100%; 1027 | width: 20px; 1028 | background: transparent url('/img/link-icon.png') no-repeat center center; 1029 | background-size: 20px 20px; 1030 | } 1031 | 1032 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) { 1033 | .content-link { 1034 | background-image: url('/img/link-icon@2x.png'); 1035 | } 1036 | } 1037 | 1038 | 1039 | /* -------------------------- 1040 | * Code Styles 1041 | * -------------------------- 1042 | */ 1043 | 1044 | pre, 1045 | code { 1046 | font-family: Consolas, Courier, monospace; 1047 | color: #333; 1048 | background: rgb(250, 250, 250); 1049 | } 1050 | 1051 | code { 1052 | padding: 0.2em 0.4em; 1053 | white-space: nowrap; 1054 | } 1055 | .content p code { 1056 | font-size: 90%; 1057 | } 1058 | 1059 | .code { 1060 | margin-left: -1em; 1061 | margin-right: -1em; 1062 | padding: 1em; 1063 | border: 1px solid #eee; 1064 | border-left-width: 0; 1065 | border-right-width: 0; 1066 | overflow-x: auto; 1067 | -webkit-overflow-scrolling: touch; 1068 | } 1069 | .code code { 1070 | font-size: 95%; 1071 | white-space: pre; 1072 | word-wrap: normal; 1073 | padding: 0; 1074 | background: none; 1075 | } 1076 | .code-wrap code { 1077 | white-space: pre-wrap; 1078 | word-wrap: break-word; 1079 | } 1080 | 1081 | /* -------------------------- 1082 | * Footer Module Styles 1083 | * -------------------------- 1084 | */ 1085 | 1086 | .footer { 1087 | font-size: 87.5%; 1088 | border-top: 1px solid #eee; 1089 | margin-top: 3.4286em; 1090 | padding: 1.1429em; 1091 | background: rgb(250, 250, 250); 1092 | } 1093 | 1094 | .legal { 1095 | line-height: 1.6; 1096 | text-align: center; 1097 | margin: 0 auto; 1098 | } 1099 | 1100 | .legal-license { 1101 | margin-top: 0; 1102 | } 1103 | .legal-links { 1104 | list-style: none; 1105 | padding: 0; 1106 | margin-bottom: 0; 1107 | } 1108 | .legal-copyright { 1109 | margin-top: 0; 1110 | margin-bottom: 0; 1111 | } 1112 | 1113 | 1114 | /* -------------------------- 1115 | * Main Navigation Bar Styles 1116 | * -------------------------- 1117 | */ 1118 | 1119 | /* Add transition to containers so they can push in and out */ 1120 | #layout, 1121 | #menu, 1122 | .menu-link { 1123 | -webkit-transition: all 0.2s ease-out; 1124 | -moz-transition: all 0.2s ease-out; 1125 | -ms-transition: all 0.2s ease-out; 1126 | -o-transition: all 0.2s ease-out; 1127 | transition: all 0.2s ease-out; 1128 | } 1129 | 1130 | #layout.active .menu-link { 1131 | left: 160px; 1132 | } 1133 | 1134 | #menu { 1135 | margin-left: -160px; /* "#menu" width */ 1136 | width: 160px; 1137 | position: fixed; 1138 | top: 0; 1139 | left: 0; 1140 | bottom: 0; 1141 | z-index: 1000; /* so the menu or its navicon stays above all content */ 1142 | background: #191818; 1143 | overflow-y: auto; 1144 | -webkit-overflow-scrolling: touch; 1145 | } 1146 | #menu a { 1147 | color: #999; 1148 | border: none; 1149 | white-space: normal; 1150 | padding: 0.625em 1em; 1151 | } 1152 | 1153 | #menu .pure-menu-open { 1154 | background: transparent; 1155 | border: 0; 1156 | } 1157 | 1158 | #menu .pure-menu ul { 1159 | border: none; 1160 | background: transparent; 1161 | display: block; 1162 | } 1163 | 1164 | #menu .pure-menu ul, 1165 | #menu .pure-menu .menu-item-divided { 1166 | border-top: 1px solid #333; 1167 | } 1168 | 1169 | #menu .pure-menu li a:hover, 1170 | #menu .pure-menu li a:focus { 1171 | background: #333; 1172 | } 1173 | 1174 | .menu-link { 1175 | position: fixed; 1176 | display: block; /* show this only on small screens */ 1177 | top: 0; 1178 | left: 0; /* "#menu width" */ 1179 | background: #000; 1180 | background: rgba(0,0,0,0.7); 1181 | font-size: 11px; /* change this value to increase/decrease button size */ 1182 | z-index: 10; 1183 | width: 4em; 1184 | height: 4em; 1185 | padding: 1em; 1186 | } 1187 | 1188 | .menu-link:hover, 1189 | .menu-link:focus { 1190 | background: #000; 1191 | } 1192 | 1193 | .menu-link span { 1194 | position: relative; 1195 | display: block; 1196 | margin-top: 0.9em; 1197 | } 1198 | 1199 | .menu-link span, 1200 | .menu-link span:before, 1201 | .menu-link span:after { 1202 | background-color: #fff; 1203 | width: 100%; 1204 | height: .2em; 1205 | -webkit-transition: all 0.4s; 1206 | -moz-transition: all 0.4s; 1207 | -ms-transition: all 0.4s; 1208 | -o-transition: all 0.4s; 1209 | transition: all 0.4s; 1210 | } 1211 | 1212 | .menu-link span:before, 1213 | .menu-link span:after { 1214 | position: absolute; 1215 | top: -.55em; 1216 | content: " "; 1217 | } 1218 | 1219 | .menu-link span:after { 1220 | top: .55em; 1221 | } 1222 | 1223 | .menu-link.active span { 1224 | background: transparent; 1225 | } 1226 | 1227 | .menu-link.active span:before { 1228 | -webkit-transform: rotate(45deg) translate(.5em, .4em); 1229 | -moz-transform: rotate(45deg) translate(.5em, .4em); 1230 | -ms-transform: rotate(45deg) translate(.5em, .4em); 1231 | -o-transform: rotate(45deg) translate(.5em, .4em); 1232 | transform: rotate(45deg) translate(.5em, .4em); 1233 | } 1234 | 1235 | .menu-link.active span:after { 1236 | -webkit-transform: rotate(-45deg) translate(.4em, -.3em); 1237 | -moz-transform: rotate(-45deg) translate(.4em, -.3em); 1238 | -ms-transform: rotate(-45deg) translate(.4em, -.3em); 1239 | -o-transform: rotate(-45deg) translate(.4em, -.3em); 1240 | transform: rotate(-45deg) translate(.4em, -.3em); 1241 | } 1242 | 1243 | #menu .pure-menu-heading { 1244 | font-size: 125%; 1245 | font-weight: 300; 1246 | letter-spacing: 0.1em; 1247 | color: #fff; 1248 | margin-top: 0; 1249 | padding: 0.5em 0.8em; 1250 | text-transform: uppercase; 1251 | } 1252 | #menu .pure-menu-heading:hover, 1253 | #menu .pure-menu-heading:focus { 1254 | color: #999; 1255 | } 1256 | 1257 | #menu .pure-menu-selected { 1258 | background: #1f8dd6; 1259 | } 1260 | 1261 | #menu .pure-menu-selected a { 1262 | color: #fff; 1263 | } 1264 | 1265 | #menu li.pure-menu-selected a:hover, 1266 | #menu li.pure-menu-selected a:focus { 1267 | background: none; 1268 | } 1269 | 1270 | 1271 | 1272 | /* --------------------- 1273 | * Smaller Module Styles 1274 | * --------------------- 1275 | */ 1276 | 1277 | .pure-img-responsive { 1278 | max-width: 100%; 1279 | height: auto; 1280 | } 1281 | 1282 | .pure-paginator .pure-button { 1283 | -webkit-box-sizing: content-box; 1284 | -moz-box-sizing: content-box; 1285 | box-sizing: content-box; 1286 | } 1287 | 1288 | .pure-button { 1289 | font-family: inherit; 1290 | } 1291 | a.pure-button-primary { 1292 | color: white; 1293 | } 1294 | 1295 | 1296 | /* green call to action button class */ 1297 | .notice { 1298 | background-color: #61B842; 1299 | color: white; 1300 | } 1301 | 1302 | .muted { 1303 | color: #ccc; 1304 | } 1305 | 1306 | 1307 | 1308 | /* ------------- 1309 | * Table Styles 1310 | * ------------- 1311 | */ 1312 | 1313 | .pure-table th, 1314 | .pure-table td { 1315 | padding: 0.5em 1em; 1316 | } 1317 | 1318 | .table-responsive { 1319 | margin-left: -1em; 1320 | margin-right: -1em; 1321 | overflow-x: auto; 1322 | -webkit-overflow-scrolling: touch; 1323 | margin-bottom: 1em; 1324 | } 1325 | .table-responsive table { 1326 | width: 100%; 1327 | min-width: 35.5em; 1328 | border-left-width: 0; 1329 | border-right-width: 0; 1330 | } 1331 | 1332 | .table-responsive .mq-table { 1333 | width: 100%; 1334 | min-width: 44em; 1335 | } 1336 | .mq-table th.highlight { 1337 | background-color: rgb(255, 234, 133); 1338 | } 1339 | .mq-table td.highlight { 1340 | background-color: rgb(255, 250, 229); 1341 | } 1342 | .mq-table th.highlight code, 1343 | .mq-table td.highlight code { 1344 | background: rgb(255, 255, 243); 1345 | } 1346 | .mq-table-mq code { 1347 | font-size: 0.875em; 1348 | } 1349 | 1350 | /* ---------------------------- 1351 | * Example for full-width Grids 1352 | * ---------------------------- 1353 | */ 1354 | 1355 | .grids-example { 1356 | background: rgb(250, 250, 250); 1357 | margin: 2em auto; 1358 | border-top: 1px solid #ddd; 1359 | border-bottom: 1px solid #ddd; 1360 | } 1361 | 1362 | /* -------------------------- 1363 | * State Rules 1364 | * -------------------------- 1365 | */ 1366 | 1367 | 1368 | .is-code-full { 1369 | text-align: center; 1370 | } 1371 | .is-code-full .code { 1372 | margin-left: auto; 1373 | margin-right: auto; 1374 | } 1375 | 1376 | 1377 | /* -------------------------- 1378 | * Responsive Styles 1379 | * -------------------------- 1380 | */ 1381 | 1382 | @media screen and (min-width: 35.5em) { 1383 | 1384 | .legal-license { 1385 | text-align: left; 1386 | margin: 0; 1387 | } 1388 | .legal-copyright, 1389 | .legal-links, 1390 | .legal-links li { 1391 | text-align: right; 1392 | margin: 0; 1393 | } 1394 | 1395 | } 1396 | 1397 | @media screen and (min-width: 48em) { 1398 | 1399 | .l-wrap, 1400 | .l-wrap .content { 1401 | padding-left: 1em; 1402 | padding-right: 1em; 1403 | } 1404 | .content .l-wrap { 1405 | margin-left: -2em; 1406 | margin-right: -2em; 1407 | } 1408 | 1409 | .header, 1410 | .content { 1411 | padding-left: 2em; 1412 | padding-right: 2em; 1413 | } 1414 | 1415 | .header h1 { 1416 | font-size: 320%; 1417 | } 1418 | .header h2 { 1419 | font-size: 128%; 1420 | } 1421 | 1422 | .content p { 1423 | font-size: 1.125em; 1424 | } 1425 | 1426 | .code { 1427 | margin-left: auto; 1428 | margin-right: auto; 1429 | border-left-width: 1px; 1430 | border-right-width: 1px; 1431 | } 1432 | 1433 | .table-responsive { 1434 | margin-left: auto; 1435 | margin-right: auto; 1436 | } 1437 | .table-responsive table { 1438 | border-left-width: 1px; 1439 | border-right-width: 1px; 1440 | } 1441 | 1442 | } 1443 | 1444 | @media (max-width: 58em) { 1445 | /* Only apply this when the window is smaller. Otherwise, the following 1446 | case results in extra padding on the left: 1447 | * Make the window small. (Rotate to portrait on a mobile.) 1448 | * Tap the menu to trigger the active state. 1449 | * Make the window large again. (Rotate to landscape on mobile.) 1450 | */ 1451 | #layout.active { 1452 | position: relative; 1453 | left: 160px; 1454 | } 1455 | } 1456 | 1457 | @media (min-width: 58em) { 1458 | 1459 | #layout { 1460 | padding-left: 160px; /* left col width "#menu" */ 1461 | left: 0; 1462 | } 1463 | #menu { 1464 | left: 160px; 1465 | } 1466 | .menu-link { 1467 | position: fixed; 1468 | left: 160px; 1469 | display: none; 1470 | } 1471 | #layout.active .menu-link { 1472 | left: 160px; 1473 | } 1474 | 1475 | } 1476 | 1477 | /** 1478 | * Baby Blue theme for RainbowJS 1479 | * 1480 | * @author tilomitra 1481 | */ 1482 | 1483 | pre .comment { 1484 | color: #999; 1485 | } 1486 | 1487 | pre .tag, 1488 | pre .tag-name, 1489 | pre .support.tag-name { 1490 | color: rgb(85, 85, 85); 1491 | } 1492 | 1493 | pre .keyword, 1494 | pre .css-property, 1495 | pre .vendor-prefix, 1496 | pre .sass, 1497 | pre .class, 1498 | pre .id, 1499 | pre .css-value, 1500 | pre .entity.function, 1501 | pre .storage.function { 1502 | font-weight: bold; 1503 | } 1504 | 1505 | pre .css-property, 1506 | pre .css-value, 1507 | pre .vendor-prefix, 1508 | pre .support.namespace { 1509 | color: #333; 1510 | } 1511 | 1512 | pre .constant.numeric, 1513 | pre .keyword.unit, 1514 | pre .hex-color { 1515 | font-weight: normal; 1516 | color: #099; 1517 | } 1518 | 1519 | pre .attribute, 1520 | pre .variable, 1521 | pre .support { 1522 | color: #757575; /* skinbuilder block-page-text-normal with #1f8dd6 as primary */ 1523 | } 1524 | 1525 | pre .string, 1526 | pre .support.value { 1527 | font-weight: normal; 1528 | color: #3b8bba; /* skinbuilder block-mine-text-low with #1f8dd6 as primary */ 1529 | } 1530 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------