├── README.md ├── .gitignore ├── src ├── main │ ├── webapp │ │ ├── resources │ │ │ ├── img │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ └── glyphicons-halflings-white.png │ │ │ ├── css │ │ │ │ ├── prettify.css │ │ │ │ ├── bootstrap-responsive.min.css │ │ │ │ ├── docs.css │ │ │ │ └── bootstrap-responsive.css │ │ │ └── js │ │ │ │ ├── prettify.js │ │ │ │ ├── bootstrap.min.js │ │ │ │ └── bootstrap.js │ │ ├── WEB-INF │ │ │ ├── web.xml │ │ │ ├── spring-servlet.xml │ │ │ └── views │ │ │ │ └── howto.jsp │ │ └── index.html │ ├── java │ │ ├── herma │ │ │ ├── common │ │ │ │ ├── EmbeddableVerticle.java │ │ │ │ └── DefaultEmbeddableVerticle.java │ │ │ ├── SpringController.java │ │ │ └── SampleVerticle.java │ │ └── temp │ │ │ ├── Client.java │ │ │ └── Server.java │ └── resources │ │ ├── logback.xml │ │ └── applicationContext.xml └── test │ └── java │ └── herma │ ├── SampleVerticleTest.java │ └── ResourceTests.java └── pom.xml /README.md: -------------------------------------------------------------------------------- 1 | http://www.youtube.com/watch?v=GYkBbx7e_Jo 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | target 4 | src/main/webapp/WEB-INF/classes 5 | src/main/webapp/WEB-INF/lib 6 | -------------------------------------------------------------------------------- /src/main/webapp/resources/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keesun/spring-vertx-sample/HEAD/src/main/webapp/resources/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keesun/spring-vertx-sample/HEAD/src/main/webapp/resources/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /src/main/java/herma/common/EmbeddableVerticle.java: -------------------------------------------------------------------------------- 1 | package herma.common; 2 | 3 | import org.vertx.java.core.Vertx; 4 | 5 | /** 6 | * @author Keesun Baik 7 | */ 8 | public interface EmbeddableVerticle { 9 | 10 | void start(Vertx vertx); 11 | 12 | String host(); 13 | 14 | int port(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/temp/Client.java: -------------------------------------------------------------------------------- 1 | package temp; 2 | 3 | import org.vertx.java.core.eventbus.EventBus; 4 | import org.vertx.java.platform.Verticle; 5 | 6 | /** 7 | * @author Keesun Baik 8 | */ 9 | public class Client extends Verticle { 10 | 11 | @Override 12 | public void start() { 13 | EventBus eventBus = vertx.eventBus(); 14 | for(int i = 0 ; i < 100 ; i++) { 15 | eventBus.publish("hello", "message " + i); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %d{HH:mm} %-5level %logger{36} - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/java/temp/Server.java: -------------------------------------------------------------------------------- 1 | package temp; 2 | 3 | import org.vertx.java.core.Handler; 4 | import org.vertx.java.core.eventbus.EventBus; 5 | import org.vertx.java.core.eventbus.Message; 6 | import org.vertx.java.platform.Verticle; 7 | 8 | /** 9 | * @author Keesun Baik 10 | */ 11 | public class Server extends Verticle { 12 | 13 | @Override 14 | public void start() { 15 | EventBus eventBus = vertx.eventBus(); 16 | eventBus.registerHandler("hello", new Handler() { 17 | @Override 18 | public void handle(Message message) { 19 | System.out.println("I got " + message.body()); 20 | } 21 | }); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/test/java/herma/SampleVerticleTest.java: -------------------------------------------------------------------------------- 1 | package herma; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.test.context.ContextConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | import static org.hamcrest.CoreMatchers.is; 10 | import static org.hamcrest.CoreMatchers.notNullValue; 11 | import static org.junit.Assert.assertThat; 12 | 13 | /** 14 | * @author Keesun Baik 15 | */ 16 | @RunWith(SpringJUnit4ClassRunner.class) 17 | @ContextConfiguration("/applicationContext.xml") 18 | public class SampleVerticleTest { 19 | 20 | @Autowired SampleVerticle sampleVerticle; 21 | 22 | @Test 23 | public void di(){ 24 | assertThat(sampleVerticle, is(notNullValue())); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/herma/SpringController.java: -------------------------------------------------------------------------------- 1 | package herma; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Controller; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.ResponseBody; 7 | import org.vertx.java.core.json.JsonObject; 8 | 9 | /** 10 | * @author Keesun Baik 11 | */ 12 | @Controller 13 | public class SpringController { 14 | 15 | @Autowired SampleVerticle sampleVerticle; 16 | 17 | @RequestMapping("/howto") 18 | public String start(){ 19 | return "/howto"; 20 | } 21 | 22 | @RequestMapping("/send") 23 | public @ResponseBody String send(){ 24 | // logic 25 | sampleVerticle.getIo().sockets().emit("echo", new JsonObject().putString("data", "hello spring")); 26 | return "ok"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #D14; } 6 | .kwd, .prettyprint .tag { color: #1e347b; } 7 | .typ, .atn, .dec, .var { color: teal; } 8 | .pln { color: #48484c; } 9 | 10 | .prettyprint { 11 | padding: 8px; 12 | background-color: #f7f7f9; 13 | border: 1px solid #e1e1e8; 14 | } 15 | .prettyprint.linenums { 16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 19 | } 20 | 21 | /* Specify class=linenums on a pre to get line numbering */ 22 | ol.linenums { 23 | margin: 0 0 0 33px; /* IE indents via margin-left */ 24 | } 25 | ol.linenums li { 26 | padding-left: 12px; 27 | color: #bebec5; 28 | line-height: 20px; 29 | text-shadow: 0 1px 0 #fff; 30 | } -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | index.html 9 | 10 | 11 | 12 | org.springframework.web.context.ContextLoaderListener 13 | 14 | 15 | 16 | contextConfigLocation 17 | classpath:/applicationContext.xml 18 | 19 | 20 | 21 | spring 22 | org.springframework.web.servlet.DispatcherServlet 23 | 24 | 25 | 26 | spring 27 | / 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/spring-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/test/java/herma/ResourceTests.java: -------------------------------------------------------------------------------- 1 | package herma; 2 | 3 | import com.nhncorp.mods.socket.io.impl.handlers.StaticHandler; 4 | import org.junit.Test; 5 | import org.springframework.util.FileCopyUtils; 6 | 7 | import java.io.File; 8 | import java.io.FileOutputStream; 9 | import java.io.IOException; 10 | import java.io.InputStream; 11 | import java.net.URL; 12 | 13 | /** 14 | * @author Keesun Baik 15 | */ 16 | public class ResourceTests { 17 | 18 | @Test 19 | public void loadingStaticFiles() throws IOException { 20 | // URL url = SocketIOServer.class.getClassLoader().getResource("socket.io.js"); 21 | ClassLoader loader = this.getClass().getClassLoader(); 22 | URL url = loader.getResource("socket.io.js"); 23 | System.out.println(url); 24 | System.out.println(url.getFile()); 25 | 26 | InputStream is = loader.getResourceAsStream("socket.io.js"); 27 | String staticRootDir = StaticHandler.getRootDir(); 28 | System.out.println(staticRootDir); 29 | File file = new File(staticRootDir + "/socket.io.js"); 30 | File parent = file.getParentFile(); 31 | if(parent != null && !parent.exists()) { 32 | parent.mkdirs(); 33 | } 34 | FileCopyUtils.copy(is, new FileOutputStream(staticRootDir + "/socket.io.js")); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/herma/SampleVerticle.java: -------------------------------------------------------------------------------- 1 | package herma; 2 | 3 | import com.nhncorp.mods.socket.io.SocketIOServer; 4 | import com.nhncorp.mods.socket.io.SocketIOSocket; 5 | import com.nhncorp.mods.socket.io.impl.DefaultSocketIOServer; 6 | import herma.common.DefaultEmbeddableVerticle; 7 | import org.springframework.stereotype.Component; 8 | import org.vertx.java.core.Handler; 9 | import org.vertx.java.core.Vertx; 10 | import org.vertx.java.core.http.HttpServer; 11 | import org.vertx.java.core.json.JsonObject; 12 | 13 | /** 14 | * @author Keesun Baik 15 | */ 16 | @Component 17 | public class SampleVerticle extends DefaultEmbeddableVerticle { 18 | 19 | private SocketIOServer io; 20 | 21 | @Override 22 | public void start(Vertx vertx) { 23 | HttpServer server = vertx.createHttpServer(); 24 | io = new DefaultSocketIOServer(vertx, server); 25 | io.sockets().onConnection(new Handler() { 26 | public void handle(final SocketIOSocket socket) { 27 | socket.emit("welcome"); 28 | 29 | socket.on("echo", new Handler() { 30 | public void handle(JsonObject msg) { 31 | socket.emit("echo", msg); 32 | } 33 | }); 34 | } 35 | }); 36 | server.listen(19999); 37 | } 38 | 39 | public SocketIOServer getIo() { 40 | return io; 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/herma/common/DefaultEmbeddableVerticle.java: -------------------------------------------------------------------------------- 1 | package herma.common; 2 | 3 | import org.springframework.beans.factory.NoSuchBeanDefinitionException; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.vertx.java.core.Vertx; 6 | import org.vertx.java.core.impl.DefaultVertx; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | /** 11 | * @author Keesun Baik 12 | */ 13 | public abstract class DefaultEmbeddableVerticle implements EmbeddableVerticle { 14 | 15 | @Autowired 16 | protected org.springframework.beans.factory.BeanFactory beanFactory; 17 | 18 | @PostConstruct 19 | public void runVerticle(){ 20 | Vertx vertx = null; 21 | try { 22 | vertx = beanFactory.getBean(Vertx.class); 23 | } catch (NoSuchBeanDefinitionException e) { 24 | if(host() != null) { 25 | if(port() != -1) { 26 | vertx = new DefaultVertx(port(), host()); 27 | } else { 28 | vertx = new DefaultVertx(host()); 29 | } 30 | } else { 31 | vertx = new DefaultVertx(); 32 | } 33 | } 34 | 35 | beanFactory.getBean(this.getClass()).start(vertx); 36 | } 37 | 38 | public String host(){ 39 | return null; 40 | } 41 | 42 | public int port(){ 43 | return -1; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Spring+Vert.x Sample 6 | 7 | 8 | 9 | 10 | 28 |
29 |
30 |

Spring+Vertx Sample

31 |

mod-socket-io를 사용하면 Verticle(Vert.x 기반 애플리케이션)을 스프링 기반 애플리케이션에 손쉽게 내장하여 사용할 수 있습니다.

32 |

Learn more >>

33 |
34 |
35 |
36 |

@ Whiteship 2012

37 |
38 |
39 | 40 | 41 | 42 | 43 | 44 | 52 | 53 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/howto.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | 5 | 6 | Spring+Vert.x Sample 7 | 8 | 9 | 10 | 11 | 12 | 30 |
31 |

1단계

32 |

mod-socket-io가 들어있는 메이븐 저장소 설정을 pom.xml에 추가합니다.

33 |
 34 | <repositories>
 35 |     ...
 36 |     <repository>
 37 |         <id>nhn</id>
 38 |         <url>https://github.com/keesun/mvn-repo/raw/master</url>
 39 |     </repository>
 40 | </repositories>
 41 | 
42 |

2단계

43 |

mod-socket-io 라이브러리를 dependency에 추가합니다.

44 |
 45 | <dependency>
 46 |     <groupId>com.nhncorp</groupId>
 47 |     <artifactId>mod-socket-io</artifactId>
 48 |     <version>1.0.1</version>
 49 | </dependency>
 50 | 
51 |

3단계

52 |

DefaultEmbeddableVerticle을 상속받아 Verticle을 작성하고 빈으로 등록합니다.

53 |
 54 | @Component
 55 | public class SampleVerticle extends DefaultEmbeddableVerticle {
 56 | 
 57 | 	@Override
 58 | 	public void start(Vertx vertx) {
 59 | 		HttpServer server = vertx.createHttpServer();
 60 | 		SocketIOServer io = new DefaultSocketIOServer(vertx, server);
 61 | 		io.sockets().onConnection(new Handler<SocketIOSocket>() {
 62 |             public void handle(final SocketIOSocket socket) {
 63 |                 socket.emit("welcome");
 64 |                 socket.on("echo", new Handler<JsonObject>() {
 65 |                     public void handle(JsonObject msg) {
 66 |                         socket.emit("echo", msg);
 67 |                     }
 68 |                 });
 69 |             }
 70 |         });
 71 |         server.listen(19999);
 72 |     }
 73 | }
 74 | 
75 |

4단계

76 |

클라이언트를 작성합니다.

77 |
 78 | var socket = io.connect("http://localhost:19999");
 79 | socket.on('connect', function(){
 80 |     console.log('connected');
 81 | });
 82 | 
83 |

5단계(끝)

84 |

스프링 웹 애플리케이션을 실행하면 Verticle도 실행되고 애플리케이션을 종료하면 Verticle로 종료됩니다.

85 | 86 | 87 |
88 |
89 |

@ NHN 2012

90 |
91 |
92 | 93 | 94 | 95 | 96 | 97 | 118 | 119 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 4.0.0 5 | 6 | me.whiteship 7 | spring-vertx-sample 8 | war 9 | 1.0.0-SNAPSHOT 10 | 11 | 12 | 3.2.4.RELEASE 13 | 2.0.1-final 14 | 1.0.2 15 | 1.7 16 | 17 | 18 | 19 | 20 | keesun.repo 21 | https://github.com/keesun/mvn-repo/raw/master 22 | 23 | 24 | 25 | 26 | 27 | junit 28 | junit 29 | 4.10 30 | test 31 | 32 | 33 | org.springframework 34 | spring-webmvc 35 | ${spring.version} 36 | 37 | 38 | org.springframework 39 | spring-test 40 | ${spring.version} 41 | test 42 | 43 | 44 | io.vertx 45 | vertx-core 46 | ${vertx.version} 47 | 48 | 49 | io.vertx 50 | vertx-platform 51 | ${vertx.version} 52 | 53 | 54 | com.nhncorp 55 | mod-socket-io 56 | ${mod-socket-io.version} 57 | 58 | 59 | javax.servlet 60 | servlet-api 61 | 2.5 62 | provided 63 | 64 | 65 | 66 | 67 | ${project.artifactId} 68 | 69 | 70 | org.apache.maven.plugins 71 | maven-compiler-plugin 72 | 2.3.2 73 | 74 | ${java.version} 75 | ${java.version} 76 | 77 | 78 | 79 | org.apache.maven.plugins 80 | maven-clean-plugin 81 | 2.5 82 | 83 | 84 | 85 | src/main/webapp/WEB-INF/lib 86 | 87 | 88 | src/main/webapp/WEB-INF/classes 89 | 90 | 91 | 92 | 93 | 94 | org.apache.maven.plugins 95 | maven-war-plugin 96 | 2.2 97 | 98 | false 99 | 100 | 101 | 102 | org.apache.maven.plugins 103 | maven-resources-plugin 104 | 2.5 105 | 106 | UTF-8 107 | 108 | 109 | 110 | org.apache.maven.plugins 111 | maven-eclipse-plugin 112 | 2.8 113 | 114 | true 115 | false 116 | 2.0 117 | 118 | 119 | 120 | org.apache.maven.plugins 121 | maven-idea-plugin 122 | 2.2 123 | 124 | true 125 | true 126 | ${java.version} 127 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /src/main/webapp/resources/js/prettify.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 3 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), 9 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, 10 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, 11 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, 12 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), 13 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} 14 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], 18 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], 19 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], 20 | J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}pli{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade.in{top:auto}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:hover{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:block;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} 10 | -------------------------------------------------------------------------------- /src/main/webapp/resources/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap.js by @fat & @mdo 3 | * Copyright 2012 Twitter, Inc. 4 | * http://www.apache.org/licenses/LICENSE-2.0.txt 5 | */ 6 | !function(e){e(function(){"use strict";e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e(function(){e("body").on("click.alert.data-api",t,n.prototype.close)})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")},e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e(function(){e("body").on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=n,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},to:function(t){var n=this.$element.find(".item.active"),r=n.parent().children(),i=r.index(n),s=this;if(t>r.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){s.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(r[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f=e.Event("slide",{relatedTarget:i[0]});this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u]();if(i.hasClass("active"))return;if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}},e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e(function(){e("body").on("click.carousel.data-api","[data-slide]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=!i.data("modal")&&e.extend({},i.data(),n.data());i.carousel(s),t.preventDefault()})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning)return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning)return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=typeof n=="object"&&n;i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e(function(){e("body").on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})})}(window.jQuery),!function(e){"use strict";function r(){i(e(t)).removeClass("open")}function i(t){var n=t.attr("data-target"),r;return n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=e(n),r.length||(r=t.parent()),r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||(s.toggleClass("open"),n.focus()),!1},keydown:function(t){var n,r,s,o,u,a;if(!/(38|40|27)/.test(t.keyCode))return;n=e(this),t.preventDefault(),t.stopPropagation();if(n.is(".disabled, :disabled"))return;o=i(n),u=o.hasClass("open");if(!u||u&&t.keyCode==27)return n.click();r=e("[role=menu] li:not(.divider) a",o);if(!r.length)return;a=r.index(r.filter(":focus")),t.keyCode==38&&a>0&&a--,t.keyCode==40&&a').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,e.proxy(this.removeBackdrop,this)):this.removeBackdrop()):t&&t()}},e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e(function(){e("body").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):this.options.trigger!="manual"&&(i=this.options.trigger=="hover"?"mouseenter":"focus",s=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))),this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);if(!n.options.delay||!n.options.delay.show)return n.show();clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){n.hoverState=="in"&&n.show()},n.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var e,t,n,r,i,s,o;if(this.hasContent()&&this.enabled){e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,t=/in/.test(s),e.remove().css({top:0,left:0,display:"block"}).appendTo(t?this.$element:document.body),n=this.getPosition(t),r=e[0].offsetWidth,i=e[0].offsetHeight;switch(t?s.split(" ")[1]:s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}e.css(o).addClass(s).addClass("in")}},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function r(){var t=setTimeout(function(){n.off(e.support.transition.end).remove()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.remove()})}var t=this,n=this.tip();return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?r():n.remove(),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return e.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}},e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover",title:"",delay:0,html:!0}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content > *")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}}),e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'})}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var t=e(this),n=t.data("target")||t.attr("href"),r=/^#\w/.test(n)&&e(n);return r&&r.length&&[[r.position().top,n]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}},e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active a").last()[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}},e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e(function(){e("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=e(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:t.top+t.height,left:t.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length"+t+""})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),(e.browser.chrome||e.browser.webkit||e.browser.msie)&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this))},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=!~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},blur:function(e){var t=this;setTimeout(function(){t.hide()},150)},click:function(e){e.stopPropagation(),e.preventDefault(),this.select()},mouseenter:function(t){this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")}},e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},e.fn.typeahead.Constructor=t,e(function(){e("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;t.preventDefault(),n.typeahead(n.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))},e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery); -------------------------------------------------------------------------------- /src/main/webapp/resources/css/docs.css: -------------------------------------------------------------------------------- 1 | /* Add additional stylesheets below 2 | -------------------------------------------------- */ 3 | /* 4 | Bootstrap's documentation styles 5 | Special styles for presenting Bootstrap's documentation and examples 6 | */ 7 | 8 | 9 | 10 | /* Body and structure 11 | -------------------------------------------------- */ 12 | 13 | body { 14 | position: relative; 15 | padding-top: 40px; 16 | } 17 | 18 | /* Code in headings */ 19 | h3 code { 20 | font-size: 14px; 21 | font-weight: normal; 22 | } 23 | 24 | 25 | 26 | /* Tweak navbar brand link to be super sleek 27 | -------------------------------------------------- */ 28 | 29 | body > .navbar { 30 | font-size: 13px; 31 | } 32 | 33 | /* Change the docs' brand */ 34 | body > .navbar .brand { 35 | padding-right: 0; 36 | padding-left: 0; 37 | margin-left: 20px; 38 | float: right; 39 | font-weight: bold; 40 | color: #000; 41 | text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125); 42 | -webkit-transition: all .2s linear; 43 | -moz-transition: all .2s linear; 44 | transition: all .2s linear; 45 | } 46 | body > .navbar .brand:hover { 47 | text-decoration: none; 48 | text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4); 49 | } 50 | 51 | 52 | /* Sections 53 | -------------------------------------------------- */ 54 | 55 | /* padding for in-page bookmarks and fixed navbar */ 56 | section { 57 | padding-top: 30px; 58 | } 59 | section > .page-header, 60 | section > .lead { 61 | color: #5a5a5a; 62 | } 63 | section > ul li { 64 | margin-bottom: 5px; 65 | } 66 | 67 | /* Separators (hr) */ 68 | .bs-docs-separator { 69 | margin: 40px 0 39px; 70 | } 71 | 72 | /* Faded out hr */ 73 | hr.soften { 74 | height: 1px; 75 | margin: 70px 0; 76 | background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0)); 77 | background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0)); 78 | background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0)); 79 | background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0)); 80 | border: 0; 81 | } 82 | 83 | 84 | 85 | /* Jumbotrons 86 | -------------------------------------------------- */ 87 | 88 | /* Base class 89 | ------------------------- */ 90 | .jumbotron { 91 | position: relative; 92 | padding: 40px 0; 93 | color: #fff; 94 | text-align: center; 95 | text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075); 96 | background: #020031; /* Old browsers */ 97 | background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%); /* FF3.6+ */ 98 | background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */ 99 | background: -webkit-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */ 100 | background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Opera 11.10+ */ 101 | background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* IE10+ */ 102 | background: linear-gradient(45deg, #020031 0%,#6d3353 100%); /* W3C */ 103 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ 104 | -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); 105 | -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); 106 | box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2); 107 | } 108 | .jumbotron h1 { 109 | font-size: 80px; 110 | font-weight: bold; 111 | letter-spacing: -1px; 112 | line-height: 1; 113 | } 114 | .jumbotron p { 115 | font-size: 24px; 116 | font-weight: 300; 117 | line-height: 30px; 118 | margin-bottom: 30px; 119 | } 120 | 121 | /* Link styles (used on .masthead-links as well) */ 122 | .jumbotron a { 123 | color: #fff; 124 | color: rgba(255,255,255,.5); 125 | -webkit-transition: all .2s ease-in-out; 126 | -moz-transition: all .2s ease-in-out; 127 | transition: all .2s ease-in-out; 128 | } 129 | .jumbotron a:hover { 130 | color: #fff; 131 | text-shadow: 0 0 10px rgba(255,255,255,.25); 132 | } 133 | 134 | /* Download button */ 135 | .masthead .btn { 136 | padding: 14px 24px; 137 | font-size: 24px; 138 | font-weight: 200; 139 | color: #fff; /* redeclare to override the `.jumbotron a` */ 140 | border: 0; 141 | -webkit-border-radius: 6px; 142 | -moz-border-radius: 6px; 143 | border-radius: 6px; 144 | -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 145 | -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 146 | box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 147 | -webkit-transition: none; 148 | -moz-transition: none; 149 | transition: none; 150 | } 151 | .masthead .btn:hover { 152 | -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 153 | -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 154 | box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25); 155 | } 156 | .masthead .btn:active { 157 | -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1); 158 | -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1); 159 | box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1); 160 | } 161 | 162 | 163 | /* Pattern overlay 164 | ------------------------- */ 165 | .jumbotron .container { 166 | position: relative; 167 | z-index: 2; 168 | } 169 | .jumbotron:after { 170 | content: ''; 171 | display: block; 172 | position: absolute; 173 | top: 0; 174 | right: 0; 175 | bottom: 0; 176 | left: 0; 177 | background: url(../img/bs-docs-masthead-pattern.png) repeat center center; 178 | opacity: .4; 179 | } 180 | 181 | /* Masthead (docs home) 182 | ------------------------- */ 183 | .masthead { 184 | padding: 70px 0 80px; 185 | margin-bottom: 0; 186 | color: #fff; 187 | } 188 | .masthead h1 { 189 | font-size: 120px; 190 | line-height: 1; 191 | letter-spacing: -2px; 192 | } 193 | .masthead p { 194 | font-size: 40px; 195 | font-weight: 200; 196 | line-height: 1.25; 197 | } 198 | 199 | /* Textual links in masthead */ 200 | .masthead-links { 201 | margin: 0; 202 | list-style: none; 203 | } 204 | .masthead-links li { 205 | display: inline; 206 | padding: 0 10px; 207 | color: rgba(255,255,255,.25); 208 | } 209 | 210 | /* Social proof buttons from GitHub & Twitter */ 211 | .bs-docs-social { 212 | padding: 15px 0; 213 | text-align: center; 214 | background-color: #f5f5f5; 215 | border-top: 1px solid #fff; 216 | border-bottom: 1px solid #ddd; 217 | } 218 | 219 | /* Quick links on Home */ 220 | .bs-docs-social-buttons { 221 | margin-left: 0; 222 | margin-bottom: 0; 223 | padding-left: 0; 224 | list-style: none; 225 | } 226 | .bs-docs-social-buttons li { 227 | display: inline-block; 228 | padding: 5px 8px; 229 | line-height: 1; 230 | *display: inline; 231 | *zoom: 1; 232 | } 233 | 234 | /* Subhead (other pages) 235 | ------------------------- */ 236 | .subhead { 237 | text-align: left; 238 | border-bottom: 1px solid #ddd; 239 | } 240 | .subhead h1 { 241 | font-size: 60px; 242 | } 243 | .subhead p { 244 | margin-bottom: 20px; 245 | } 246 | .subhead .navbar { 247 | display: none; 248 | } 249 | 250 | 251 | 252 | /* Marketing section of Overview 253 | -------------------------------------------------- */ 254 | 255 | .marketing { 256 | text-align: center; 257 | color: #5a5a5a; 258 | } 259 | .marketing h1 { 260 | margin: 60px 0 10px; 261 | font-size: 60px; 262 | font-weight: 200; 263 | line-height: 1; 264 | letter-spacing: -1px; 265 | } 266 | .marketing h2 { 267 | font-weight: 200; 268 | margin-bottom: 5px; 269 | } 270 | .marketing p { 271 | font-size: 16px; 272 | line-height: 1.5; 273 | } 274 | .marketing .marketing-byline { 275 | margin-bottom: 40px; 276 | font-size: 20px; 277 | font-weight: 300; 278 | line-height: 25px; 279 | color: #999; 280 | } 281 | .marketing img { 282 | display: block; 283 | margin: 0 auto 30px; 284 | } 285 | 286 | 287 | 288 | /* Footer 289 | -------------------------------------------------- */ 290 | 291 | .footer { 292 | padding: 70px 0; 293 | margin-top: 70px; 294 | border-top: 1px solid #e5e5e5; 295 | background-color: #f5f5f5; 296 | } 297 | .footer p { 298 | margin-bottom: 0; 299 | color: #777; 300 | } 301 | .footer-links { 302 | margin: 10px 0; 303 | } 304 | .footer-links li { 305 | display: inline; 306 | margin-right: 10px; 307 | } 308 | 309 | 310 | 311 | /* Special grid styles 312 | -------------------------------------------------- */ 313 | 314 | .show-grid { 315 | margin-top: 10px; 316 | margin-bottom: 20px; 317 | } 318 | .show-grid [class*="span"] { 319 | background-color: #eee; 320 | text-align: center; 321 | -webkit-border-radius: 3px; 322 | -moz-border-radius: 3px; 323 | border-radius: 3px; 324 | min-height: 40px; 325 | line-height: 40px; 326 | } 327 | .show-grid:hover [class*="span"] { 328 | background: #ddd; 329 | } 330 | .show-grid .show-grid { 331 | margin-top: 0; 332 | margin-bottom: 0; 333 | } 334 | .show-grid .show-grid [class*="span"] { 335 | background-color: #ccc; 336 | } 337 | 338 | 339 | 340 | /* Mini layout previews 341 | -------------------------------------------------- */ 342 | .mini-layout { 343 | border: 1px solid #ddd; 344 | -webkit-border-radius: 6px; 345 | -moz-border-radius: 6px; 346 | border-radius: 6px; 347 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075); 348 | -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075); 349 | box-shadow: 0 1px 2px rgba(0,0,0,.075); 350 | } 351 | .mini-layout, 352 | .mini-layout .mini-layout-body, 353 | .mini-layout.fluid .mini-layout-sidebar { 354 | height: 300px; 355 | } 356 | .mini-layout { 357 | margin-bottom: 20px; 358 | padding: 9px; 359 | } 360 | .mini-layout div { 361 | -webkit-border-radius: 3px; 362 | -moz-border-radius: 3px; 363 | border-radius: 3px; 364 | } 365 | .mini-layout .mini-layout-body { 366 | background-color: #dceaf4; 367 | margin: 0 auto; 368 | width: 70%; 369 | } 370 | .mini-layout.fluid .mini-layout-sidebar, 371 | .mini-layout.fluid .mini-layout-header, 372 | .mini-layout.fluid .mini-layout-body { 373 | float: left; 374 | } 375 | .mini-layout.fluid .mini-layout-sidebar { 376 | background-color: #bbd8e9; 377 | width: 20%; 378 | } 379 | .mini-layout.fluid .mini-layout-body { 380 | width: 77.5%; 381 | margin-left: 2.5%; 382 | } 383 | 384 | 385 | 386 | /* Download page 387 | -------------------------------------------------- */ 388 | 389 | .download .page-header { 390 | margin-top: 36px; 391 | } 392 | .page-header .toggle-all { 393 | margin-top: 5px; 394 | } 395 | 396 | /* Space out h3s when following a section */ 397 | .download h3 { 398 | margin-bottom: 5px; 399 | } 400 | .download-builder input + h3, 401 | .download-builder .checkbox + h3 { 402 | margin-top: 9px; 403 | } 404 | 405 | /* Fields for variables */ 406 | .download-builder input[type=text] { 407 | margin-bottom: 9px; 408 | font-family: Menlo, Monaco, "Courier New", monospace; 409 | font-size: 12px; 410 | color: #d14; 411 | } 412 | .download-builder input[type=text]:focus { 413 | background-color: #fff; 414 | } 415 | 416 | /* Custom, larger checkbox labels */ 417 | .download .checkbox { 418 | padding: 6px 10px 6px 25px; 419 | font-size: 13px; 420 | line-height: 18px; 421 | color: #555; 422 | background-color: #f9f9f9; 423 | -webkit-border-radius: 3px; 424 | -moz-border-radius: 3px; 425 | border-radius: 3px; 426 | cursor: pointer; 427 | } 428 | .download .checkbox:hover { 429 | color: #333; 430 | background-color: #f5f5f5; 431 | } 432 | .download .checkbox small { 433 | font-size: 12px; 434 | color: #777; 435 | } 436 | 437 | /* Variables section */ 438 | #variables label { 439 | margin-bottom: 0; 440 | } 441 | 442 | /* Giant download button */ 443 | .download-btn { 444 | margin: 36px 0 108px; 445 | } 446 | #download p, 447 | #download h4 { 448 | max-width: 50%; 449 | margin: 0 auto; 450 | color: #999; 451 | text-align: center; 452 | } 453 | #download h4 { 454 | margin-bottom: 0; 455 | } 456 | #download p { 457 | margin-bottom: 18px; 458 | } 459 | .download-btn .btn { 460 | display: block; 461 | width: auto; 462 | padding: 19px 24px; 463 | margin-bottom: 27px; 464 | font-size: 30px; 465 | line-height: 1; 466 | text-align: center; 467 | -webkit-border-radius: 6px; 468 | -moz-border-radius: 6px; 469 | border-radius: 6px; 470 | } 471 | 472 | 473 | 474 | /* Misc 475 | -------------------------------------------------- */ 476 | 477 | /* Make tables spaced out a bit more */ 478 | h2 + table, 479 | h3 + table, 480 | h4 + table, 481 | h2 + .row { 482 | margin-top: 5px; 483 | } 484 | 485 | /* Example sites showcase */ 486 | .example-sites { 487 | xmargin-left: 20px; 488 | } 489 | .example-sites img { 490 | max-width: 100%; 491 | margin: 0 auto; 492 | } 493 | 494 | .scrollspy-example { 495 | height: 200px; 496 | overflow: auto; 497 | position: relative; 498 | } 499 | 500 | 501 | /* Fake the :focus state to demo it */ 502 | .focused { 503 | border-color: rgba(82,168,236,.8); 504 | -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6); 505 | -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6); 506 | box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6); 507 | outline: 0; 508 | } 509 | 510 | /* For input sizes, make them display block */ 511 | .docs-input-sizes select, 512 | .docs-input-sizes input[type=text] { 513 | display: block; 514 | margin-bottom: 9px; 515 | } 516 | 517 | /* Icons 518 | ------------------------- */ 519 | .the-icons { 520 | margin-left: 0; 521 | list-style: none; 522 | } 523 | .the-icons li { 524 | float: left; 525 | width: 25%; 526 | line-height: 25px; 527 | } 528 | .the-icons i:hover { 529 | background-color: rgba(255,0,0,.25); 530 | } 531 | 532 | /* Example page 533 | ------------------------- */ 534 | .bootstrap-examples p { 535 | font-size: 13px; 536 | line-height: 18px; 537 | } 538 | .bootstrap-examples .thumbnail { 539 | margin-bottom: 9px; 540 | background-color: #fff; 541 | } 542 | 543 | 544 | 545 | /* Bootstrap code examples 546 | -------------------------------------------------- */ 547 | 548 | /* Base class */ 549 | .bs-docs-example { 550 | position: relative; 551 | margin: 15px 0; 552 | padding: 39px 19px 14px; 553 | *padding-top: 19px; 554 | background-color: #fff; 555 | border: 1px solid #ddd; 556 | -webkit-border-radius: 4px; 557 | -moz-border-radius: 4px; 558 | border-radius: 4px; 559 | } 560 | 561 | /* Echo out a label for the example */ 562 | .bs-docs-example:after { 563 | content: "Example"; 564 | position: absolute; 565 | top: -1px; 566 | left: -1px; 567 | padding: 3px 7px; 568 | font-size: 12px; 569 | font-weight: bold; 570 | background-color: #f5f5f5; 571 | border: 1px solid #ddd; 572 | color: #9da0a4; 573 | -webkit-border-radius: 4px 0 4px 0; 574 | -moz-border-radius: 4px 0 4px 0; 575 | border-radius: 4px 0 4px 0; 576 | } 577 | 578 | /* Remove spacing between an example and it's code */ 579 | .bs-docs-example + .prettyprint { 580 | margin-top: -20px; 581 | padding-top: 15px; 582 | } 583 | 584 | /* Tweak examples 585 | ------------------------- */ 586 | .bs-docs-example > p:last-child { 587 | margin-bottom: 0; 588 | } 589 | .bs-docs-example .table, 590 | .bs-docs-example .progress, 591 | .bs-docs-example .well, 592 | .bs-docs-example .alert, 593 | .bs-docs-example .hero-unit, 594 | .bs-docs-example .pagination, 595 | .bs-docs-example .navbar, 596 | .bs-docs-example > .nav, 597 | .bs-docs-example blockquote { 598 | margin-bottom: 5px; 599 | } 600 | .bs-docs-example .pagination { 601 | margin-top: 0; 602 | } 603 | .bs-navbar-top-example, 604 | .bs-navbar-bottom-example { 605 | z-index: 1; 606 | padding: 0; 607 | height: 90px; 608 | overflow: hidden; /* cut the drop shadows off */ 609 | } 610 | .bs-navbar-top-example .navbar-fixed-top, 611 | .bs-navbar-bottom-example .navbar-fixed-bottom { 612 | margin-left: 0; 613 | margin-right: 0; 614 | } 615 | .bs-navbar-top-example { 616 | -webkit-border-radius: 0 0 4px 4px; 617 | -moz-border-radius: 0 0 4px 4px; 618 | border-radius: 0 0 4px 4px; 619 | } 620 | .bs-navbar-top-example:after { 621 | top: auto; 622 | bottom: -1px; 623 | -webkit-border-radius: 0 4px 0 4px; 624 | -moz-border-radius: 0 4px 0 4px; 625 | border-radius: 0 4px 0 4px; 626 | } 627 | .bs-navbar-bottom-example { 628 | -webkit-border-radius: 4px 4px 0 0; 629 | -moz-border-radius: 4px 4px 0 0; 630 | border-radius: 4px 4px 0 0; 631 | } 632 | .bs-navbar-bottom-example .navbar { 633 | margin-bottom: 0; 634 | } 635 | form.bs-docs-example { 636 | padding-bottom: 19px; 637 | } 638 | 639 | /* Images */ 640 | .bs-docs-example-images img { 641 | margin: 10px; 642 | display: inline-block; 643 | } 644 | 645 | /* Tooltips */ 646 | .bs-docs-tooltip-examples { 647 | text-align: center; 648 | margin: 0 0 10px; 649 | list-style: none; 650 | } 651 | .bs-docs-tooltip-examples li { 652 | display: inline; 653 | padding: 0 10px; 654 | } 655 | 656 | /* Popovers */ 657 | .bs-docs-example-popover { 658 | padding-bottom: 24px; 659 | background-color: #f9f9f9; 660 | } 661 | .bs-docs-example-popover .popover { 662 | position: relative; 663 | display: block; 664 | float: left; 665 | width: 260px; 666 | margin: 20px; 667 | } 668 | 669 | 670 | 671 | /* Responsive docs 672 | -------------------------------------------------- */ 673 | 674 | /* Utility classes table 675 | ------------------------- */ 676 | .responsive-utilities th small { 677 | display: block; 678 | font-weight: normal; 679 | color: #999; 680 | } 681 | .responsive-utilities tbody th { 682 | font-weight: normal; 683 | } 684 | .responsive-utilities td { 685 | text-align: center; 686 | } 687 | .responsive-utilities td.is-visible { 688 | color: #468847; 689 | background-color: #dff0d8 !important; 690 | } 691 | .responsive-utilities td.is-hidden { 692 | color: #ccc; 693 | background-color: #f9f9f9 !important; 694 | } 695 | 696 | /* Responsive tests 697 | ------------------------- */ 698 | .responsive-utilities-test { 699 | margin-top: 5px; 700 | margin-left: 0; 701 | list-style: none; 702 | overflow: hidden; /* clear floats */ 703 | } 704 | .responsive-utilities-test li { 705 | position: relative; 706 | float: left; 707 | width: 25%; 708 | height: 43px; 709 | font-size: 14px; 710 | font-weight: bold; 711 | line-height: 43px; 712 | color: #999; 713 | text-align: center; 714 | border: 1px solid #ddd; 715 | -webkit-border-radius: 4px; 716 | -moz-border-radius: 4px; 717 | border-radius: 4px; 718 | } 719 | .responsive-utilities-test li + li { 720 | margin-left: 10px; 721 | } 722 | .responsive-utilities-test span { 723 | position: absolute; 724 | top: -1px; 725 | left: -1px; 726 | right: -1px; 727 | bottom: -1px; 728 | -webkit-border-radius: 4px; 729 | -moz-border-radius: 4px; 730 | border-radius: 4px; 731 | } 732 | .responsive-utilities-test span { 733 | color: #468847; 734 | background-color: #dff0d8; 735 | border: 1px solid #d6e9c6; 736 | } 737 | 738 | 739 | 740 | /* Sidenav for Docs 741 | -------------------------------------------------- */ 742 | 743 | .bs-docs-sidenav { 744 | width: 228px; 745 | margin: 30px 0 0; 746 | padding: 0; 747 | background-color: #fff; 748 | -webkit-border-radius: 6px; 749 | -moz-border-radius: 6px; 750 | border-radius: 6px; 751 | -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065); 752 | -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065); 753 | box-shadow: 0 1px 4px rgba(0,0,0,.065); 754 | } 755 | .bs-docs-sidenav > li > a { 756 | display: block; 757 | *width: 190px; 758 | margin: 0 0 -1px; 759 | padding: 8px 14px; 760 | border: 1px solid #e5e5e5; 761 | } 762 | .bs-docs-sidenav > li:first-child > a { 763 | -webkit-border-radius: 6px 6px 0 0; 764 | -moz-border-radius: 6px 6px 0 0; 765 | border-radius: 6px 6px 0 0; 766 | } 767 | .bs-docs-sidenav > li:last-child > a { 768 | -webkit-border-radius: 0 0 6px 6px; 769 | -moz-border-radius: 0 0 6px 6px; 770 | border-radius: 0 0 6px 6px; 771 | } 772 | .bs-docs-sidenav > .active > a { 773 | position: relative; 774 | z-index: 2; 775 | padding: 9px 15px; 776 | border: 0; 777 | text-shadow: 0 1px 0 rgba(0,0,0,.15); 778 | -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1); 779 | -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1); 780 | box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1); 781 | } 782 | /* Chevrons */ 783 | .bs-docs-sidenav .icon-chevron-right { 784 | float: right; 785 | margin-top: 2px; 786 | margin-right: -6px; 787 | opacity: .25; 788 | } 789 | .bs-docs-sidenav > li > a:hover { 790 | background-color: #f5f5f5; 791 | } 792 | .bs-docs-sidenav a:hover .icon-chevron-right { 793 | opacity: .5; 794 | } 795 | .bs-docs-sidenav .active .icon-chevron-right, 796 | .bs-docs-sidenav .active a:hover .icon-chevron-right { 797 | background-image: url(../img/glyphicons-halflings-white.png); 798 | opacity: 1; 799 | } 800 | .bs-docs-sidenav.affix { 801 | top: 40px; 802 | } 803 | .bs-docs-sidenav.affix-bottom { 804 | position: absolute; 805 | top: auto; 806 | bottom: 270px; 807 | } 808 | 809 | 810 | 811 | 812 | /* Responsive 813 | -------------------------------------------------- */ 814 | 815 | /* Desktop large 816 | ------------------------- */ 817 | @media (min-width: 1200px) { 818 | .bs-docs-container { 819 | max-width: 970px; 820 | } 821 | .bs-docs-sidenav { 822 | width: 258px; 823 | } 824 | } 825 | 826 | /* Desktop 827 | ------------------------- */ 828 | @media (max-width: 980px) { 829 | /* Unfloat brand */ 830 | body > .navbar-fixed-top .brand { 831 | float: left; 832 | margin-left: 0; 833 | padding-left: 10px; 834 | padding-right: 10px; 835 | } 836 | 837 | /* Inline-block quick links for more spacing */ 838 | .quick-links li { 839 | display: inline-block; 840 | margin: 5px; 841 | } 842 | 843 | /* When affixed, space properly */ 844 | .bs-docs-sidenav { 845 | top: 0; 846 | margin-top: 30px; 847 | margin-right: 0; 848 | } 849 | } 850 | 851 | /* Tablet to desktop 852 | ------------------------- */ 853 | @media (min-width: 768px) and (max-width: 980px) { 854 | /* Remove any padding from the body */ 855 | body { 856 | padding-top: 0; 857 | } 858 | /* Widen masthead and social buttons to fill body padding */ 859 | .jumbotron { 860 | margin-top: -20px; /* Offset bottom margin on .navbar */ 861 | } 862 | /* Adjust sidenav width */ 863 | .bs-docs-sidenav { 864 | width: 166px; 865 | margin-top: 20px; 866 | } 867 | .bs-docs-sidenav.affix { 868 | top: 0; 869 | } 870 | } 871 | 872 | /* Tablet 873 | ------------------------- */ 874 | @media (max-width: 767px) { 875 | /* Remove any padding from the body */ 876 | body { 877 | padding-top: 0; 878 | } 879 | 880 | /* Widen masthead and social buttons to fill body padding */ 881 | .jumbotron { 882 | padding: 40px 20px; 883 | margin-top: -20px; /* Offset bottom margin on .navbar */ 884 | margin-right: -20px; 885 | margin-left: -20px; 886 | } 887 | .masthead h1 { 888 | font-size: 90px; 889 | } 890 | .masthead p, 891 | .masthead .btn { 892 | font-size: 24px; 893 | } 894 | .marketing .span4 { 895 | margin-bottom: 40px; 896 | } 897 | .bs-docs-social { 898 | margin: 0 -20px; 899 | } 900 | 901 | /* Space out the show-grid examples */ 902 | .show-grid [class*="span"] { 903 | margin-bottom: 5px; 904 | } 905 | 906 | /* Sidenav */ 907 | .bs-docs-sidenav { 908 | width: auto; 909 | margin-bottom: 20px; 910 | } 911 | .bs-docs-sidenav.affix { 912 | position: static; 913 | width: auto; 914 | top: 0; 915 | } 916 | 917 | /* Unfloat the back to top link in footer */ 918 | .footer { 919 | margin-left: -20px; 920 | margin-right: -20px; 921 | padding-left: 20px; 922 | padding-right: 20px; 923 | } 924 | .footer p { 925 | margin-bottom: 9px; 926 | } 927 | } 928 | 929 | /* Landscape phones 930 | ------------------------- */ 931 | @media (max-width: 480px) { 932 | /* Remove padding above jumbotron */ 933 | body { 934 | padding-top: 0; 935 | } 936 | 937 | /* Change up some type stuff */ 938 | h2 small { 939 | display: block; 940 | } 941 | 942 | /* Downsize the jumbotrons */ 943 | .jumbotron h1 { 944 | font-size: 60px; 945 | } 946 | .jumbotron p, 947 | .jumbotron .btn { 948 | font-size: 20px; 949 | } 950 | .jumbotron .btn { 951 | display: block; 952 | margin: 0 auto; 953 | } 954 | 955 | /* center align subhead text like the masthead */ 956 | .subhead h1, 957 | .subhead p { 958 | text-align: center; 959 | } 960 | 961 | /* Marketing on home */ 962 | .marketing h1 { 963 | font-size: 40px; 964 | } 965 | 966 | /* center example sites */ 967 | .example-sites { 968 | margin-left: 0; 969 | } 970 | .example-sites > li { 971 | float: none; 972 | display: block; 973 | max-width: 280px; 974 | margin: 0 auto 18px; 975 | text-align: center; 976 | } 977 | .example-sites .thumbnail > img { 978 | max-width: 270px; 979 | } 980 | 981 | /* Do our best to make tables work in narrow viewports */ 982 | table code { 983 | white-space: normal; 984 | word-wrap: break-word; 985 | word-break: break-all; 986 | } 987 | 988 | /* Modal example */ 989 | .modal-example .modal { 990 | position: relative; 991 | top: auto; 992 | right: auto; 993 | bottom: auto; 994 | left: auto; 995 | } 996 | 997 | /* Unfloat the back to top in footer to prevent odd text wrapping */ 998 | .footer .pull-right { 999 | float: none; 1000 | } 1001 | } 1002 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/bootstrap-responsive.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Responsive v2.1.1 3 | * 4 | * Copyright 2012 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */ 10 | 11 | .clearfix { 12 | *zoom: 1; 13 | } 14 | 15 | .clearfix:before, 16 | .clearfix:after { 17 | display: table; 18 | line-height: 0; 19 | content: ""; 20 | } 21 | 22 | .clearfix:after { 23 | clear: both; 24 | } 25 | 26 | .hide-text { 27 | font: 0/0 a; 28 | color: transparent; 29 | text-shadow: none; 30 | background-color: transparent; 31 | border: 0; 32 | } 33 | 34 | .input-block-level { 35 | display: block; 36 | width: 100%; 37 | min-height: 30px; 38 | -webkit-box-sizing: border-box; 39 | -moz-box-sizing: border-box; 40 | box-sizing: border-box; 41 | } 42 | 43 | .hidden { 44 | display: none; 45 | visibility: hidden; 46 | } 47 | 48 | .visible-phone { 49 | display: none !important; 50 | } 51 | 52 | .visible-tablet { 53 | display: none !important; 54 | } 55 | 56 | .hidden-desktop { 57 | display: none !important; 58 | } 59 | 60 | .visible-desktop { 61 | display: inherit !important; 62 | } 63 | 64 | @media (min-width: 768px) and (max-width: 979px) { 65 | .hidden-desktop { 66 | display: inherit !important; 67 | } 68 | .visible-desktop { 69 | display: none !important ; 70 | } 71 | .visible-tablet { 72 | display: inherit !important; 73 | } 74 | .hidden-tablet { 75 | display: none !important; 76 | } 77 | } 78 | 79 | @media (max-width: 767px) { 80 | .hidden-desktop { 81 | display: inherit !important; 82 | } 83 | .visible-desktop { 84 | display: none !important; 85 | } 86 | .visible-phone { 87 | display: inherit !important; 88 | } 89 | .hidden-phone { 90 | display: none !important; 91 | } 92 | } 93 | 94 | @media (min-width: 1200px) { 95 | .row { 96 | margin-left: -30px; 97 | *zoom: 1; 98 | } 99 | .row:before, 100 | .row:after { 101 | display: table; 102 | line-height: 0; 103 | content: ""; 104 | } 105 | .row:after { 106 | clear: both; 107 | } 108 | [class*="span"] { 109 | float: left; 110 | min-height: 1px; 111 | margin-left: 30px; 112 | } 113 | .container, 114 | .navbar-static-top .container, 115 | .navbar-fixed-top .container, 116 | .navbar-fixed-bottom .container { 117 | width: 1170px; 118 | } 119 | .span12 { 120 | width: 1170px; 121 | } 122 | .span11 { 123 | width: 1070px; 124 | } 125 | .span10 { 126 | width: 970px; 127 | } 128 | .span9 { 129 | width: 870px; 130 | } 131 | .span8 { 132 | width: 770px; 133 | } 134 | .span7 { 135 | width: 670px; 136 | } 137 | .span6 { 138 | width: 570px; 139 | } 140 | .span5 { 141 | width: 470px; 142 | } 143 | .span4 { 144 | width: 370px; 145 | } 146 | .span3 { 147 | width: 270px; 148 | } 149 | .span2 { 150 | width: 170px; 151 | } 152 | .span1 { 153 | width: 70px; 154 | } 155 | .offset12 { 156 | margin-left: 1230px; 157 | } 158 | .offset11 { 159 | margin-left: 1130px; 160 | } 161 | .offset10 { 162 | margin-left: 1030px; 163 | } 164 | .offset9 { 165 | margin-left: 930px; 166 | } 167 | .offset8 { 168 | margin-left: 830px; 169 | } 170 | .offset7 { 171 | margin-left: 730px; 172 | } 173 | .offset6 { 174 | margin-left: 630px; 175 | } 176 | .offset5 { 177 | margin-left: 530px; 178 | } 179 | .offset4 { 180 | margin-left: 430px; 181 | } 182 | .offset3 { 183 | margin-left: 330px; 184 | } 185 | .offset2 { 186 | margin-left: 230px; 187 | } 188 | .offset1 { 189 | margin-left: 130px; 190 | } 191 | .row-fluid { 192 | width: 100%; 193 | *zoom: 1; 194 | } 195 | .row-fluid:before, 196 | .row-fluid:after { 197 | display: table; 198 | line-height: 0; 199 | content: ""; 200 | } 201 | .row-fluid:after { 202 | clear: both; 203 | } 204 | .row-fluid [class*="span"] { 205 | display: block; 206 | float: left; 207 | width: 100%; 208 | min-height: 30px; 209 | margin-left: 2.564102564102564%; 210 | *margin-left: 2.5109110747408616%; 211 | -webkit-box-sizing: border-box; 212 | -moz-box-sizing: border-box; 213 | box-sizing: border-box; 214 | } 215 | .row-fluid [class*="span"]:first-child { 216 | margin-left: 0; 217 | } 218 | .row-fluid .span12 { 219 | width: 100%; 220 | *width: 99.94680851063829%; 221 | } 222 | .row-fluid .span11 { 223 | width: 91.45299145299145%; 224 | *width: 91.39979996362975%; 225 | } 226 | .row-fluid .span10 { 227 | width: 82.90598290598291%; 228 | *width: 82.8527914166212%; 229 | } 230 | .row-fluid .span9 { 231 | width: 74.35897435897436%; 232 | *width: 74.30578286961266%; 233 | } 234 | .row-fluid .span8 { 235 | width: 65.81196581196582%; 236 | *width: 65.75877432260411%; 237 | } 238 | .row-fluid .span7 { 239 | width: 57.26495726495726%; 240 | *width: 57.21176577559556%; 241 | } 242 | .row-fluid .span6 { 243 | width: 48.717948717948715%; 244 | *width: 48.664757228587014%; 245 | } 246 | .row-fluid .span5 { 247 | width: 40.17094017094017%; 248 | *width: 40.11774868157847%; 249 | } 250 | .row-fluid .span4 { 251 | width: 31.623931623931625%; 252 | *width: 31.570740134569924%; 253 | } 254 | .row-fluid .span3 { 255 | width: 23.076923076923077%; 256 | *width: 23.023731587561375%; 257 | } 258 | .row-fluid .span2 { 259 | width: 14.52991452991453%; 260 | *width: 14.476723040552828%; 261 | } 262 | .row-fluid .span1 { 263 | width: 5.982905982905983%; 264 | *width: 5.929714493544281%; 265 | } 266 | .row-fluid .offset12 { 267 | margin-left: 105.12820512820512%; 268 | *margin-left: 105.02182214948171%; 269 | } 270 | .row-fluid .offset12:first-child { 271 | margin-left: 102.56410256410257%; 272 | *margin-left: 102.45771958537915%; 273 | } 274 | .row-fluid .offset11 { 275 | margin-left: 96.58119658119658%; 276 | *margin-left: 96.47481360247316%; 277 | } 278 | .row-fluid .offset11:first-child { 279 | margin-left: 94.01709401709402%; 280 | *margin-left: 93.91071103837061%; 281 | } 282 | .row-fluid .offset10 { 283 | margin-left: 88.03418803418803%; 284 | *margin-left: 87.92780505546462%; 285 | } 286 | .row-fluid .offset10:first-child { 287 | margin-left: 85.47008547008548%; 288 | *margin-left: 85.36370249136206%; 289 | } 290 | .row-fluid .offset9 { 291 | margin-left: 79.48717948717949%; 292 | *margin-left: 79.38079650845607%; 293 | } 294 | .row-fluid .offset9:first-child { 295 | margin-left: 76.92307692307693%; 296 | *margin-left: 76.81669394435352%; 297 | } 298 | .row-fluid .offset8 { 299 | margin-left: 70.94017094017094%; 300 | *margin-left: 70.83378796144753%; 301 | } 302 | .row-fluid .offset8:first-child { 303 | margin-left: 68.37606837606839%; 304 | *margin-left: 68.26968539734497%; 305 | } 306 | .row-fluid .offset7 { 307 | margin-left: 62.393162393162385%; 308 | *margin-left: 62.28677941443899%; 309 | } 310 | .row-fluid .offset7:first-child { 311 | margin-left: 59.82905982905982%; 312 | *margin-left: 59.72267685033642%; 313 | } 314 | .row-fluid .offset6 { 315 | margin-left: 53.84615384615384%; 316 | *margin-left: 53.739770867430444%; 317 | } 318 | .row-fluid .offset6:first-child { 319 | margin-left: 51.28205128205128%; 320 | *margin-left: 51.175668303327875%; 321 | } 322 | .row-fluid .offset5 { 323 | margin-left: 45.299145299145295%; 324 | *margin-left: 45.1927623204219%; 325 | } 326 | .row-fluid .offset5:first-child { 327 | margin-left: 42.73504273504273%; 328 | *margin-left: 42.62865975631933%; 329 | } 330 | .row-fluid .offset4 { 331 | margin-left: 36.75213675213675%; 332 | *margin-left: 36.645753773413354%; 333 | } 334 | .row-fluid .offset4:first-child { 335 | margin-left: 34.18803418803419%; 336 | *margin-left: 34.081651209310785%; 337 | } 338 | .row-fluid .offset3 { 339 | margin-left: 28.205128205128204%; 340 | *margin-left: 28.0987452264048%; 341 | } 342 | .row-fluid .offset3:first-child { 343 | margin-left: 25.641025641025642%; 344 | *margin-left: 25.53464266230224%; 345 | } 346 | .row-fluid .offset2 { 347 | margin-left: 19.65811965811966%; 348 | *margin-left: 19.551736679396257%; 349 | } 350 | .row-fluid .offset2:first-child { 351 | margin-left: 17.094017094017094%; 352 | *margin-left: 16.98763411529369%; 353 | } 354 | .row-fluid .offset1 { 355 | margin-left: 11.11111111111111%; 356 | *margin-left: 11.004728132387708%; 357 | } 358 | .row-fluid .offset1:first-child { 359 | margin-left: 8.547008547008547%; 360 | *margin-left: 8.440625568285142%; 361 | } 362 | input, 363 | textarea, 364 | .uneditable-input { 365 | margin-left: 0; 366 | } 367 | .controls-row [class*="span"] + [class*="span"] { 368 | margin-left: 30px; 369 | } 370 | input.span12, 371 | textarea.span12, 372 | .uneditable-input.span12 { 373 | width: 1156px; 374 | } 375 | input.span11, 376 | textarea.span11, 377 | .uneditable-input.span11 { 378 | width: 1056px; 379 | } 380 | input.span10, 381 | textarea.span10, 382 | .uneditable-input.span10 { 383 | width: 956px; 384 | } 385 | input.span9, 386 | textarea.span9, 387 | .uneditable-input.span9 { 388 | width: 856px; 389 | } 390 | input.span8, 391 | textarea.span8, 392 | .uneditable-input.span8 { 393 | width: 756px; 394 | } 395 | input.span7, 396 | textarea.span7, 397 | .uneditable-input.span7 { 398 | width: 656px; 399 | } 400 | input.span6, 401 | textarea.span6, 402 | .uneditable-input.span6 { 403 | width: 556px; 404 | } 405 | input.span5, 406 | textarea.span5, 407 | .uneditable-input.span5 { 408 | width: 456px; 409 | } 410 | input.span4, 411 | textarea.span4, 412 | .uneditable-input.span4 { 413 | width: 356px; 414 | } 415 | input.span3, 416 | textarea.span3, 417 | .uneditable-input.span3 { 418 | width: 256px; 419 | } 420 | input.span2, 421 | textarea.span2, 422 | .uneditable-input.span2 { 423 | width: 156px; 424 | } 425 | input.span1, 426 | textarea.span1, 427 | .uneditable-input.span1 { 428 | width: 56px; 429 | } 430 | .thumbnails { 431 | margin-left: -30px; 432 | } 433 | .thumbnails > li { 434 | margin-left: 30px; 435 | } 436 | .row-fluid .thumbnails { 437 | margin-left: 0; 438 | } 439 | } 440 | 441 | @media (min-width: 768px) and (max-width: 979px) { 442 | .row { 443 | margin-left: -20px; 444 | *zoom: 1; 445 | } 446 | .row:before, 447 | .row:after { 448 | display: table; 449 | line-height: 0; 450 | content: ""; 451 | } 452 | .row:after { 453 | clear: both; 454 | } 455 | [class*="span"] { 456 | float: left; 457 | min-height: 1px; 458 | margin-left: 20px; 459 | } 460 | .container, 461 | .navbar-static-top .container, 462 | .navbar-fixed-top .container, 463 | .navbar-fixed-bottom .container { 464 | width: 724px; 465 | } 466 | .span12 { 467 | width: 724px; 468 | } 469 | .span11 { 470 | width: 662px; 471 | } 472 | .span10 { 473 | width: 600px; 474 | } 475 | .span9 { 476 | width: 538px; 477 | } 478 | .span8 { 479 | width: 476px; 480 | } 481 | .span7 { 482 | width: 414px; 483 | } 484 | .span6 { 485 | width: 352px; 486 | } 487 | .span5 { 488 | width: 290px; 489 | } 490 | .span4 { 491 | width: 228px; 492 | } 493 | .span3 { 494 | width: 166px; 495 | } 496 | .span2 { 497 | width: 104px; 498 | } 499 | .span1 { 500 | width: 42px; 501 | } 502 | .offset12 { 503 | margin-left: 764px; 504 | } 505 | .offset11 { 506 | margin-left: 702px; 507 | } 508 | .offset10 { 509 | margin-left: 640px; 510 | } 511 | .offset9 { 512 | margin-left: 578px; 513 | } 514 | .offset8 { 515 | margin-left: 516px; 516 | } 517 | .offset7 { 518 | margin-left: 454px; 519 | } 520 | .offset6 { 521 | margin-left: 392px; 522 | } 523 | .offset5 { 524 | margin-left: 330px; 525 | } 526 | .offset4 { 527 | margin-left: 268px; 528 | } 529 | .offset3 { 530 | margin-left: 206px; 531 | } 532 | .offset2 { 533 | margin-left: 144px; 534 | } 535 | .offset1 { 536 | margin-left: 82px; 537 | } 538 | .row-fluid { 539 | width: 100%; 540 | *zoom: 1; 541 | } 542 | .row-fluid:before, 543 | .row-fluid:after { 544 | display: table; 545 | line-height: 0; 546 | content: ""; 547 | } 548 | .row-fluid:after { 549 | clear: both; 550 | } 551 | .row-fluid [class*="span"] { 552 | display: block; 553 | float: left; 554 | width: 100%; 555 | min-height: 30px; 556 | margin-left: 2.7624309392265194%; 557 | *margin-left: 2.709239449864817%; 558 | -webkit-box-sizing: border-box; 559 | -moz-box-sizing: border-box; 560 | box-sizing: border-box; 561 | } 562 | .row-fluid [class*="span"]:first-child { 563 | margin-left: 0; 564 | } 565 | .row-fluid .span12 { 566 | width: 100%; 567 | *width: 99.94680851063829%; 568 | } 569 | .row-fluid .span11 { 570 | width: 91.43646408839778%; 571 | *width: 91.38327259903608%; 572 | } 573 | .row-fluid .span10 { 574 | width: 82.87292817679558%; 575 | *width: 82.81973668743387%; 576 | } 577 | .row-fluid .span9 { 578 | width: 74.30939226519337%; 579 | *width: 74.25620077583166%; 580 | } 581 | .row-fluid .span8 { 582 | width: 65.74585635359117%; 583 | *width: 65.69266486422946%; 584 | } 585 | .row-fluid .span7 { 586 | width: 57.18232044198895%; 587 | *width: 57.12912895262725%; 588 | } 589 | .row-fluid .span6 { 590 | width: 48.61878453038674%; 591 | *width: 48.56559304102504%; 592 | } 593 | .row-fluid .span5 { 594 | width: 40.05524861878453%; 595 | *width: 40.00205712942283%; 596 | } 597 | .row-fluid .span4 { 598 | width: 31.491712707182323%; 599 | *width: 31.43852121782062%; 600 | } 601 | .row-fluid .span3 { 602 | width: 22.92817679558011%; 603 | *width: 22.87498530621841%; 604 | } 605 | .row-fluid .span2 { 606 | width: 14.3646408839779%; 607 | *width: 14.311449394616199%; 608 | } 609 | .row-fluid .span1 { 610 | width: 5.801104972375691%; 611 | *width: 5.747913483013988%; 612 | } 613 | .row-fluid .offset12 { 614 | margin-left: 105.52486187845304%; 615 | *margin-left: 105.41847889972962%; 616 | } 617 | .row-fluid .offset12:first-child { 618 | margin-left: 102.76243093922652%; 619 | *margin-left: 102.6560479605031%; 620 | } 621 | .row-fluid .offset11 { 622 | margin-left: 96.96132596685082%; 623 | *margin-left: 96.8549429881274%; 624 | } 625 | .row-fluid .offset11:first-child { 626 | margin-left: 94.1988950276243%; 627 | *margin-left: 94.09251204890089%; 628 | } 629 | .row-fluid .offset10 { 630 | margin-left: 88.39779005524862%; 631 | *margin-left: 88.2914070765252%; 632 | } 633 | .row-fluid .offset10:first-child { 634 | margin-left: 85.6353591160221%; 635 | *margin-left: 85.52897613729868%; 636 | } 637 | .row-fluid .offset9 { 638 | margin-left: 79.8342541436464%; 639 | *margin-left: 79.72787116492299%; 640 | } 641 | .row-fluid .offset9:first-child { 642 | margin-left: 77.07182320441989%; 643 | *margin-left: 76.96544022569647%; 644 | } 645 | .row-fluid .offset8 { 646 | margin-left: 71.2707182320442%; 647 | *margin-left: 71.16433525332079%; 648 | } 649 | .row-fluid .offset8:first-child { 650 | margin-left: 68.50828729281768%; 651 | *margin-left: 68.40190431409427%; 652 | } 653 | .row-fluid .offset7 { 654 | margin-left: 62.70718232044199%; 655 | *margin-left: 62.600799341718584%; 656 | } 657 | .row-fluid .offset7:first-child { 658 | margin-left: 59.94475138121547%; 659 | *margin-left: 59.838368402492065%; 660 | } 661 | .row-fluid .offset6 { 662 | margin-left: 54.14364640883978%; 663 | *margin-left: 54.037263430116376%; 664 | } 665 | .row-fluid .offset6:first-child { 666 | margin-left: 51.38121546961326%; 667 | *margin-left: 51.27483249088986%; 668 | } 669 | .row-fluid .offset5 { 670 | margin-left: 45.58011049723757%; 671 | *margin-left: 45.47372751851417%; 672 | } 673 | .row-fluid .offset5:first-child { 674 | margin-left: 42.81767955801105%; 675 | *margin-left: 42.71129657928765%; 676 | } 677 | .row-fluid .offset4 { 678 | margin-left: 37.01657458563536%; 679 | *margin-left: 36.91019160691196%; 680 | } 681 | .row-fluid .offset4:first-child { 682 | margin-left: 34.25414364640884%; 683 | *margin-left: 34.14776066768544%; 684 | } 685 | .row-fluid .offset3 { 686 | margin-left: 28.45303867403315%; 687 | *margin-left: 28.346655695309746%; 688 | } 689 | .row-fluid .offset3:first-child { 690 | margin-left: 25.69060773480663%; 691 | *margin-left: 25.584224756083227%; 692 | } 693 | .row-fluid .offset2 { 694 | margin-left: 19.88950276243094%; 695 | *margin-left: 19.783119783707537%; 696 | } 697 | .row-fluid .offset2:first-child { 698 | margin-left: 17.12707182320442%; 699 | *margin-left: 17.02068884448102%; 700 | } 701 | .row-fluid .offset1 { 702 | margin-left: 11.32596685082873%; 703 | *margin-left: 11.219583872105325%; 704 | } 705 | .row-fluid .offset1:first-child { 706 | margin-left: 8.56353591160221%; 707 | *margin-left: 8.457152932878806%; 708 | } 709 | input, 710 | textarea, 711 | .uneditable-input { 712 | margin-left: 0; 713 | } 714 | .controls-row [class*="span"] + [class*="span"] { 715 | margin-left: 20px; 716 | } 717 | input.span12, 718 | textarea.span12, 719 | .uneditable-input.span12 { 720 | width: 710px; 721 | } 722 | input.span11, 723 | textarea.span11, 724 | .uneditable-input.span11 { 725 | width: 648px; 726 | } 727 | input.span10, 728 | textarea.span10, 729 | .uneditable-input.span10 { 730 | width: 586px; 731 | } 732 | input.span9, 733 | textarea.span9, 734 | .uneditable-input.span9 { 735 | width: 524px; 736 | } 737 | input.span8, 738 | textarea.span8, 739 | .uneditable-input.span8 { 740 | width: 462px; 741 | } 742 | input.span7, 743 | textarea.span7, 744 | .uneditable-input.span7 { 745 | width: 400px; 746 | } 747 | input.span6, 748 | textarea.span6, 749 | .uneditable-input.span6 { 750 | width: 338px; 751 | } 752 | input.span5, 753 | textarea.span5, 754 | .uneditable-input.span5 { 755 | width: 276px; 756 | } 757 | input.span4, 758 | textarea.span4, 759 | .uneditable-input.span4 { 760 | width: 214px; 761 | } 762 | input.span3, 763 | textarea.span3, 764 | .uneditable-input.span3 { 765 | width: 152px; 766 | } 767 | input.span2, 768 | textarea.span2, 769 | .uneditable-input.span2 { 770 | width: 90px; 771 | } 772 | input.span1, 773 | textarea.span1, 774 | .uneditable-input.span1 { 775 | width: 28px; 776 | } 777 | } 778 | 779 | @media (max-width: 767px) { 780 | body { 781 | padding-right: 20px; 782 | padding-left: 20px; 783 | } 784 | .navbar-fixed-top, 785 | .navbar-fixed-bottom, 786 | .navbar-static-top { 787 | margin-right: -20px; 788 | margin-left: -20px; 789 | } 790 | .container-fluid { 791 | padding: 0; 792 | } 793 | .dl-horizontal dt { 794 | float: none; 795 | width: auto; 796 | clear: none; 797 | text-align: left; 798 | } 799 | .dl-horizontal dd { 800 | margin-left: 0; 801 | } 802 | .container { 803 | width: auto; 804 | } 805 | .row-fluid { 806 | width: 100%; 807 | } 808 | .row, 809 | .thumbnails { 810 | margin-left: 0; 811 | } 812 | .thumbnails > li { 813 | float: none; 814 | margin-left: 0; 815 | } 816 | [class*="span"], 817 | .row-fluid [class*="span"] { 818 | display: block; 819 | float: none; 820 | width: 100%; 821 | margin-left: 0; 822 | -webkit-box-sizing: border-box; 823 | -moz-box-sizing: border-box; 824 | box-sizing: border-box; 825 | } 826 | .span12, 827 | .row-fluid .span12 { 828 | width: 100%; 829 | -webkit-box-sizing: border-box; 830 | -moz-box-sizing: border-box; 831 | box-sizing: border-box; 832 | } 833 | .input-large, 834 | .input-xlarge, 835 | .input-xxlarge, 836 | input[class*="span"], 837 | select[class*="span"], 838 | textarea[class*="span"], 839 | .uneditable-input { 840 | display: block; 841 | width: 100%; 842 | min-height: 30px; 843 | -webkit-box-sizing: border-box; 844 | -moz-box-sizing: border-box; 845 | box-sizing: border-box; 846 | } 847 | .input-prepend input, 848 | .input-append input, 849 | .input-prepend input[class*="span"], 850 | .input-append input[class*="span"] { 851 | display: inline-block; 852 | width: auto; 853 | } 854 | .controls-row [class*="span"] + [class*="span"] { 855 | margin-left: 0; 856 | } 857 | .modal { 858 | position: fixed; 859 | top: 20px; 860 | right: 20px; 861 | left: 20px; 862 | width: auto; 863 | margin: 0; 864 | } 865 | .modal.fade.in { 866 | top: auto; 867 | } 868 | } 869 | 870 | @media (max-width: 480px) { 871 | .nav-collapse { 872 | -webkit-transform: translate3d(0, 0, 0); 873 | } 874 | .page-header h1 small { 875 | display: block; 876 | line-height: 20px; 877 | } 878 | input[type="checkbox"], 879 | input[type="radio"] { 880 | border: 1px solid #ccc; 881 | } 882 | .form-horizontal .control-label { 883 | float: none; 884 | width: auto; 885 | padding-top: 0; 886 | text-align: left; 887 | } 888 | .form-horizontal .controls { 889 | margin-left: 0; 890 | } 891 | .form-horizontal .control-list { 892 | padding-top: 0; 893 | } 894 | .form-horizontal .form-actions { 895 | padding-right: 10px; 896 | padding-left: 10px; 897 | } 898 | .modal { 899 | top: 10px; 900 | right: 10px; 901 | left: 10px; 902 | } 903 | .modal-header .close { 904 | padding: 10px; 905 | margin: -10px; 906 | } 907 | .carousel-caption { 908 | position: static; 909 | } 910 | } 911 | 912 | @media (max-width: 979px) { 913 | body { 914 | padding-top: 0; 915 | } 916 | .navbar-fixed-top, 917 | .navbar-fixed-bottom { 918 | position: static; 919 | } 920 | .navbar-fixed-top { 921 | margin-bottom: 20px; 922 | } 923 | .navbar-fixed-bottom { 924 | margin-top: 20px; 925 | } 926 | .navbar-fixed-top .navbar-inner, 927 | .navbar-fixed-bottom .navbar-inner { 928 | padding: 5px; 929 | } 930 | .navbar .container { 931 | width: auto; 932 | padding: 0; 933 | } 934 | .navbar .brand { 935 | padding-right: 10px; 936 | padding-left: 10px; 937 | margin: 0 0 0 -5px; 938 | } 939 | .nav-collapse { 940 | clear: both; 941 | } 942 | .nav-collapse .nav { 943 | float: none; 944 | margin: 0 0 10px; 945 | } 946 | .nav-collapse .nav > li { 947 | float: none; 948 | } 949 | .nav-collapse .nav > li > a { 950 | margin-bottom: 2px; 951 | } 952 | .nav-collapse .nav > .divider-vertical { 953 | display: none; 954 | } 955 | .nav-collapse .nav .nav-header { 956 | color: #777777; 957 | text-shadow: none; 958 | } 959 | .nav-collapse .nav > li > a, 960 | .nav-collapse .dropdown-menu a { 961 | padding: 9px 15px; 962 | font-weight: bold; 963 | color: #777777; 964 | -webkit-border-radius: 3px; 965 | -moz-border-radius: 3px; 966 | border-radius: 3px; 967 | } 968 | .nav-collapse .btn { 969 | padding: 4px 10px 4px; 970 | font-weight: normal; 971 | -webkit-border-radius: 4px; 972 | -moz-border-radius: 4px; 973 | border-radius: 4px; 974 | } 975 | .nav-collapse .dropdown-menu li + li a { 976 | margin-bottom: 2px; 977 | } 978 | .nav-collapse .nav > li > a:hover, 979 | .nav-collapse .dropdown-menu a:hover { 980 | background-color: #f2f2f2; 981 | } 982 | .navbar-inverse .nav-collapse .nav > li > a:hover, 983 | .navbar-inverse .nav-collapse .dropdown-menu a:hover { 984 | background-color: #111111; 985 | } 986 | .nav-collapse.in .btn-group { 987 | padding: 0; 988 | margin-top: 5px; 989 | } 990 | .nav-collapse .dropdown-menu { 991 | position: static; 992 | top: auto; 993 | left: auto; 994 | display: block; 995 | float: none; 996 | max-width: none; 997 | padding: 0; 998 | margin: 0 15px; 999 | background-color: transparent; 1000 | border: none; 1001 | -webkit-border-radius: 0; 1002 | -moz-border-radius: 0; 1003 | border-radius: 0; 1004 | -webkit-box-shadow: none; 1005 | -moz-box-shadow: none; 1006 | box-shadow: none; 1007 | } 1008 | .nav-collapse .dropdown-menu:before, 1009 | .nav-collapse .dropdown-menu:after { 1010 | display: none; 1011 | } 1012 | .nav-collapse .dropdown-menu .divider { 1013 | display: none; 1014 | } 1015 | .nav-collapse .nav > li > .dropdown-menu:before, 1016 | .nav-collapse .nav > li > .dropdown-menu:after { 1017 | display: none; 1018 | } 1019 | .nav-collapse .navbar-form, 1020 | .nav-collapse .navbar-search { 1021 | float: none; 1022 | padding: 10px 15px; 1023 | margin: 10px 0; 1024 | border-top: 1px solid #f2f2f2; 1025 | border-bottom: 1px solid #f2f2f2; 1026 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1027 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1028 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); 1029 | } 1030 | .navbar-inverse .nav-collapse .navbar-form, 1031 | .navbar-inverse .nav-collapse .navbar-search { 1032 | border-top-color: #111111; 1033 | border-bottom-color: #111111; 1034 | } 1035 | .navbar .nav-collapse .nav.pull-right { 1036 | float: none; 1037 | margin-left: 0; 1038 | } 1039 | .nav-collapse, 1040 | .nav-collapse.collapse { 1041 | height: 0; 1042 | overflow: hidden; 1043 | } 1044 | .navbar .btn-navbar { 1045 | display: block; 1046 | } 1047 | .navbar-static .navbar-inner { 1048 | padding-right: 10px; 1049 | padding-left: 10px; 1050 | } 1051 | } 1052 | 1053 | @media (min-width: 980px) { 1054 | .nav-collapse.collapse { 1055 | height: auto !important; 1056 | overflow: visible !important; 1057 | } 1058 | } 1059 | -------------------------------------------------------------------------------- /src/main/webapp/resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /* =================================================== 2 | * bootstrap-transition.js v2.1.1 3 | * http://twitter.github.com/bootstrap/javascript.html#transitions 4 | * =================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | $(function () { 24 | 25 | "use strict"; // jshint ;_; 26 | 27 | 28 | /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) 29 | * ======================================================= */ 30 | 31 | $.support.transition = (function () { 32 | 33 | var transitionEnd = (function () { 34 | 35 | var el = document.createElement('bootstrap') 36 | , transEndEventNames = { 37 | 'WebkitTransition' : 'webkitTransitionEnd' 38 | , 'MozTransition' : 'transitionend' 39 | , 'OTransition' : 'oTransitionEnd otransitionend' 40 | , 'transition' : 'transitionend' 41 | } 42 | , name 43 | 44 | for (name in transEndEventNames){ 45 | if (el.style[name] !== undefined) { 46 | return transEndEventNames[name] 47 | } 48 | } 49 | 50 | }()) 51 | 52 | return transitionEnd && { 53 | end: transitionEnd 54 | } 55 | 56 | })() 57 | 58 | }) 59 | 60 | }(window.jQuery);/* ========================================================== 61 | * bootstrap-alert.js v2.1.1 62 | * http://twitter.github.com/bootstrap/javascript.html#alerts 63 | * ========================================================== 64 | * Copyright 2012 Twitter, Inc. 65 | * 66 | * Licensed under the Apache License, Version 2.0 (the "License"); 67 | * you may not use this file except in compliance with the License. 68 | * You may obtain a copy of the License at 69 | * 70 | * http://www.apache.org/licenses/LICENSE-2.0 71 | * 72 | * Unless required by applicable law or agreed to in writing, software 73 | * distributed under the License is distributed on an "AS IS" BASIS, 74 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 75 | * See the License for the specific language governing permissions and 76 | * limitations under the License. 77 | * ========================================================== */ 78 | 79 | 80 | !function ($) { 81 | 82 | "use strict"; // jshint ;_; 83 | 84 | 85 | /* ALERT CLASS DEFINITION 86 | * ====================== */ 87 | 88 | var dismiss = '[data-dismiss="alert"]' 89 | , Alert = function (el) { 90 | $(el).on('click', dismiss, this.close) 91 | } 92 | 93 | Alert.prototype.close = function (e) { 94 | var $this = $(this) 95 | , selector = $this.attr('data-target') 96 | , $parent 97 | 98 | if (!selector) { 99 | selector = $this.attr('href') 100 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 101 | } 102 | 103 | $parent = $(selector) 104 | 105 | e && e.preventDefault() 106 | 107 | $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) 108 | 109 | $parent.trigger(e = $.Event('close')) 110 | 111 | if (e.isDefaultPrevented()) return 112 | 113 | $parent.removeClass('in') 114 | 115 | function removeElement() { 116 | $parent 117 | .trigger('closed') 118 | .remove() 119 | } 120 | 121 | $.support.transition && $parent.hasClass('fade') ? 122 | $parent.on($.support.transition.end, removeElement) : 123 | removeElement() 124 | } 125 | 126 | 127 | /* ALERT PLUGIN DEFINITION 128 | * ======================= */ 129 | 130 | $.fn.alert = function (option) { 131 | return this.each(function () { 132 | var $this = $(this) 133 | , data = $this.data('alert') 134 | if (!data) $this.data('alert', (data = new Alert(this))) 135 | if (typeof option == 'string') data[option].call($this) 136 | }) 137 | } 138 | 139 | $.fn.alert.Constructor = Alert 140 | 141 | 142 | /* ALERT DATA-API 143 | * ============== */ 144 | 145 | $(function () { 146 | $('body').on('click.alert.data-api', dismiss, Alert.prototype.close) 147 | }) 148 | 149 | }(window.jQuery);/* ============================================================ 150 | * bootstrap-button.js v2.1.1 151 | * http://twitter.github.com/bootstrap/javascript.html#buttons 152 | * ============================================================ 153 | * Copyright 2012 Twitter, Inc. 154 | * 155 | * Licensed under the Apache License, Version 2.0 (the "License"); 156 | * you may not use this file except in compliance with the License. 157 | * You may obtain a copy of the License at 158 | * 159 | * http://www.apache.org/licenses/LICENSE-2.0 160 | * 161 | * Unless required by applicable law or agreed to in writing, software 162 | * distributed under the License is distributed on an "AS IS" BASIS, 163 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 164 | * See the License for the specific language governing permissions and 165 | * limitations under the License. 166 | * ============================================================ */ 167 | 168 | 169 | !function ($) { 170 | 171 | "use strict"; // jshint ;_; 172 | 173 | 174 | /* BUTTON PUBLIC CLASS DEFINITION 175 | * ============================== */ 176 | 177 | var Button = function (element, options) { 178 | this.$element = $(element) 179 | this.options = $.extend({}, $.fn.button.defaults, options) 180 | } 181 | 182 | Button.prototype.setState = function (state) { 183 | var d = 'disabled' 184 | , $el = this.$element 185 | , data = $el.data() 186 | , val = $el.is('input') ? 'val' : 'html' 187 | 188 | state = state + 'Text' 189 | data.resetText || $el.data('resetText', $el[val]()) 190 | 191 | $el[val](data[state] || this.options[state]) 192 | 193 | // push to event loop to allow forms to submit 194 | setTimeout(function () { 195 | state == 'loadingText' ? 196 | $el.addClass(d).attr(d, d) : 197 | $el.removeClass(d).removeAttr(d) 198 | }, 0) 199 | } 200 | 201 | Button.prototype.toggle = function () { 202 | var $parent = this.$element.closest('[data-toggle="buttons-radio"]') 203 | 204 | $parent && $parent 205 | .find('.active') 206 | .removeClass('active') 207 | 208 | this.$element.toggleClass('active') 209 | } 210 | 211 | 212 | /* BUTTON PLUGIN DEFINITION 213 | * ======================== */ 214 | 215 | $.fn.button = function (option) { 216 | return this.each(function () { 217 | var $this = $(this) 218 | , data = $this.data('button') 219 | , options = typeof option == 'object' && option 220 | if (!data) $this.data('button', (data = new Button(this, options))) 221 | if (option == 'toggle') data.toggle() 222 | else if (option) data.setState(option) 223 | }) 224 | } 225 | 226 | $.fn.button.defaults = { 227 | loadingText: 'loading...' 228 | } 229 | 230 | $.fn.button.Constructor = Button 231 | 232 | 233 | /* BUTTON DATA-API 234 | * =============== */ 235 | 236 | $(function () { 237 | $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { 238 | var $btn = $(e.target) 239 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') 240 | $btn.button('toggle') 241 | }) 242 | }) 243 | 244 | }(window.jQuery);/* ========================================================== 245 | * bootstrap-carousel.js v2.1.1 246 | * http://twitter.github.com/bootstrap/javascript.html#carousel 247 | * ========================================================== 248 | * Copyright 2012 Twitter, Inc. 249 | * 250 | * Licensed under the Apache License, Version 2.0 (the "License"); 251 | * you may not use this file except in compliance with the License. 252 | * You may obtain a copy of the License at 253 | * 254 | * http://www.apache.org/licenses/LICENSE-2.0 255 | * 256 | * Unless required by applicable law or agreed to in writing, software 257 | * distributed under the License is distributed on an "AS IS" BASIS, 258 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 259 | * See the License for the specific language governing permissions and 260 | * limitations under the License. 261 | * ========================================================== */ 262 | 263 | 264 | !function ($) { 265 | 266 | "use strict"; // jshint ;_; 267 | 268 | 269 | /* CAROUSEL CLASS DEFINITION 270 | * ========================= */ 271 | 272 | var Carousel = function (element, options) { 273 | this.$element = $(element) 274 | this.options = options 275 | this.options.slide && this.slide(this.options.slide) 276 | this.options.pause == 'hover' && this.$element 277 | .on('mouseenter', $.proxy(this.pause, this)) 278 | .on('mouseleave', $.proxy(this.cycle, this)) 279 | } 280 | 281 | Carousel.prototype = { 282 | 283 | cycle: function (e) { 284 | if (!e) this.paused = false 285 | this.options.interval 286 | && !this.paused 287 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) 288 | return this 289 | } 290 | 291 | , to: function (pos) { 292 | var $active = this.$element.find('.item.active') 293 | , children = $active.parent().children() 294 | , activePos = children.index($active) 295 | , that = this 296 | 297 | if (pos > (children.length - 1) || pos < 0) return 298 | 299 | if (this.sliding) { 300 | return this.$element.one('slid', function () { 301 | that.to(pos) 302 | }) 303 | } 304 | 305 | if (activePos == pos) { 306 | return this.pause().cycle() 307 | } 308 | 309 | return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos])) 310 | } 311 | 312 | , pause: function (e) { 313 | if (!e) this.paused = true 314 | if (this.$element.find('.next, .prev').length && $.support.transition.end) { 315 | this.$element.trigger($.support.transition.end) 316 | this.cycle() 317 | } 318 | clearInterval(this.interval) 319 | this.interval = null 320 | return this 321 | } 322 | 323 | , next: function () { 324 | if (this.sliding) return 325 | return this.slide('next') 326 | } 327 | 328 | , prev: function () { 329 | if (this.sliding) return 330 | return this.slide('prev') 331 | } 332 | 333 | , slide: function (type, next) { 334 | var $active = this.$element.find('.item.active') 335 | , $next = next || $active[type]() 336 | , isCycling = this.interval 337 | , direction = type == 'next' ? 'left' : 'right' 338 | , fallback = type == 'next' ? 'first' : 'last' 339 | , that = this 340 | , e = $.Event('slide', { 341 | relatedTarget: $next[0] 342 | }) 343 | 344 | this.sliding = true 345 | 346 | isCycling && this.pause() 347 | 348 | $next = $next.length ? $next : this.$element.find('.item')[fallback]() 349 | 350 | if ($next.hasClass('active')) return 351 | 352 | if ($.support.transition && this.$element.hasClass('slide')) { 353 | this.$element.trigger(e) 354 | if (e.isDefaultPrevented()) return 355 | $next.addClass(type) 356 | $next[0].offsetWidth // force reflow 357 | $active.addClass(direction) 358 | $next.addClass(direction) 359 | this.$element.one($.support.transition.end, function () { 360 | $next.removeClass([type, direction].join(' ')).addClass('active') 361 | $active.removeClass(['active', direction].join(' ')) 362 | that.sliding = false 363 | setTimeout(function () { that.$element.trigger('slid') }, 0) 364 | }) 365 | } else { 366 | this.$element.trigger(e) 367 | if (e.isDefaultPrevented()) return 368 | $active.removeClass('active') 369 | $next.addClass('active') 370 | this.sliding = false 371 | this.$element.trigger('slid') 372 | } 373 | 374 | isCycling && this.cycle() 375 | 376 | return this 377 | } 378 | 379 | } 380 | 381 | 382 | /* CAROUSEL PLUGIN DEFINITION 383 | * ========================== */ 384 | 385 | $.fn.carousel = function (option) { 386 | return this.each(function () { 387 | var $this = $(this) 388 | , data = $this.data('carousel') 389 | , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option) 390 | , action = typeof option == 'string' ? option : options.slide 391 | if (!data) $this.data('carousel', (data = new Carousel(this, options))) 392 | if (typeof option == 'number') data.to(option) 393 | else if (action) data[action]() 394 | else if (options.interval) data.cycle() 395 | }) 396 | } 397 | 398 | $.fn.carousel.defaults = { 399 | interval: 5000 400 | , pause: 'hover' 401 | } 402 | 403 | $.fn.carousel.Constructor = Carousel 404 | 405 | 406 | /* CAROUSEL DATA-API 407 | * ================= */ 408 | 409 | $(function () { 410 | $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) { 411 | var $this = $(this), href 412 | , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 413 | , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data()) 414 | $target.carousel(options) 415 | e.preventDefault() 416 | }) 417 | }) 418 | 419 | }(window.jQuery);/* ============================================================= 420 | * bootstrap-collapse.js v2.1.1 421 | * http://twitter.github.com/bootstrap/javascript.html#collapse 422 | * ============================================================= 423 | * Copyright 2012 Twitter, Inc. 424 | * 425 | * Licensed under the Apache License, Version 2.0 (the "License"); 426 | * you may not use this file except in compliance with the License. 427 | * You may obtain a copy of the License at 428 | * 429 | * http://www.apache.org/licenses/LICENSE-2.0 430 | * 431 | * Unless required by applicable law or agreed to in writing, software 432 | * distributed under the License is distributed on an "AS IS" BASIS, 433 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 434 | * See the License for the specific language governing permissions and 435 | * limitations under the License. 436 | * ============================================================ */ 437 | 438 | 439 | !function ($) { 440 | 441 | "use strict"; // jshint ;_; 442 | 443 | 444 | /* COLLAPSE PUBLIC CLASS DEFINITION 445 | * ================================ */ 446 | 447 | var Collapse = function (element, options) { 448 | this.$element = $(element) 449 | this.options = $.extend({}, $.fn.collapse.defaults, options) 450 | 451 | if (this.options.parent) { 452 | this.$parent = $(this.options.parent) 453 | } 454 | 455 | this.options.toggle && this.toggle() 456 | } 457 | 458 | Collapse.prototype = { 459 | 460 | constructor: Collapse 461 | 462 | , dimension: function () { 463 | var hasWidth = this.$element.hasClass('width') 464 | return hasWidth ? 'width' : 'height' 465 | } 466 | 467 | , show: function () { 468 | var dimension 469 | , scroll 470 | , actives 471 | , hasData 472 | 473 | if (this.transitioning) return 474 | 475 | dimension = this.dimension() 476 | scroll = $.camelCase(['scroll', dimension].join('-')) 477 | actives = this.$parent && this.$parent.find('> .accordion-group > .in') 478 | 479 | if (actives && actives.length) { 480 | hasData = actives.data('collapse') 481 | if (hasData && hasData.transitioning) return 482 | actives.collapse('hide') 483 | hasData || actives.data('collapse', null) 484 | } 485 | 486 | this.$element[dimension](0) 487 | this.transition('addClass', $.Event('show'), 'shown') 488 | $.support.transition && this.$element[dimension](this.$element[0][scroll]) 489 | } 490 | 491 | , hide: function () { 492 | var dimension 493 | if (this.transitioning) return 494 | dimension = this.dimension() 495 | this.reset(this.$element[dimension]()) 496 | this.transition('removeClass', $.Event('hide'), 'hidden') 497 | this.$element[dimension](0) 498 | } 499 | 500 | , reset: function (size) { 501 | var dimension = this.dimension() 502 | 503 | this.$element 504 | .removeClass('collapse') 505 | [dimension](size || 'auto') 506 | [0].offsetWidth 507 | 508 | this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') 509 | 510 | return this 511 | } 512 | 513 | , transition: function (method, startEvent, completeEvent) { 514 | var that = this 515 | , complete = function () { 516 | if (startEvent.type == 'show') that.reset() 517 | that.transitioning = 0 518 | that.$element.trigger(completeEvent) 519 | } 520 | 521 | this.$element.trigger(startEvent) 522 | 523 | if (startEvent.isDefaultPrevented()) return 524 | 525 | this.transitioning = 1 526 | 527 | this.$element[method]('in') 528 | 529 | $.support.transition && this.$element.hasClass('collapse') ? 530 | this.$element.one($.support.transition.end, complete) : 531 | complete() 532 | } 533 | 534 | , toggle: function () { 535 | this[this.$element.hasClass('in') ? 'hide' : 'show']() 536 | } 537 | 538 | } 539 | 540 | 541 | /* COLLAPSIBLE PLUGIN DEFINITION 542 | * ============================== */ 543 | 544 | $.fn.collapse = function (option) { 545 | return this.each(function () { 546 | var $this = $(this) 547 | , data = $this.data('collapse') 548 | , options = typeof option == 'object' && option 549 | if (!data) $this.data('collapse', (data = new Collapse(this, options))) 550 | if (typeof option == 'string') data[option]() 551 | }) 552 | } 553 | 554 | $.fn.collapse.defaults = { 555 | toggle: true 556 | } 557 | 558 | $.fn.collapse.Constructor = Collapse 559 | 560 | 561 | /* COLLAPSIBLE DATA-API 562 | * ==================== */ 563 | 564 | $(function () { 565 | $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { 566 | var $this = $(this), href 567 | , target = $this.attr('data-target') 568 | || e.preventDefault() 569 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 570 | , option = $(target).data('collapse') ? 'toggle' : $this.data() 571 | $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') 572 | $(target).collapse(option) 573 | }) 574 | }) 575 | 576 | }(window.jQuery);/* ============================================================ 577 | * bootstrap-dropdown.js v2.1.1 578 | * http://twitter.github.com/bootstrap/javascript.html#dropdowns 579 | * ============================================================ 580 | * Copyright 2012 Twitter, Inc. 581 | * 582 | * Licensed under the Apache License, Version 2.0 (the "License"); 583 | * you may not use this file except in compliance with the License. 584 | * You may obtain a copy of the License at 585 | * 586 | * http://www.apache.org/licenses/LICENSE-2.0 587 | * 588 | * Unless required by applicable law or agreed to in writing, software 589 | * distributed under the License is distributed on an "AS IS" BASIS, 590 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 591 | * See the License for the specific language governing permissions and 592 | * limitations under the License. 593 | * ============================================================ */ 594 | 595 | 596 | !function ($) { 597 | 598 | "use strict"; // jshint ;_; 599 | 600 | 601 | /* DROPDOWN CLASS DEFINITION 602 | * ========================= */ 603 | 604 | var toggle = '[data-toggle=dropdown]' 605 | , Dropdown = function (element) { 606 | var $el = $(element).on('click.dropdown.data-api', this.toggle) 607 | $('html').on('click.dropdown.data-api', function () { 608 | $el.parent().removeClass('open') 609 | }) 610 | } 611 | 612 | Dropdown.prototype = { 613 | 614 | constructor: Dropdown 615 | 616 | , toggle: function (e) { 617 | var $this = $(this) 618 | , $parent 619 | , isActive 620 | 621 | if ($this.is('.disabled, :disabled')) return 622 | 623 | $parent = getParent($this) 624 | 625 | isActive = $parent.hasClass('open') 626 | 627 | clearMenus() 628 | 629 | if (!isActive) { 630 | $parent.toggleClass('open') 631 | $this.focus() 632 | } 633 | 634 | return false 635 | } 636 | 637 | , keydown: function (e) { 638 | var $this 639 | , $items 640 | , $active 641 | , $parent 642 | , isActive 643 | , index 644 | 645 | if (!/(38|40|27)/.test(e.keyCode)) return 646 | 647 | $this = $(this) 648 | 649 | e.preventDefault() 650 | e.stopPropagation() 651 | 652 | if ($this.is('.disabled, :disabled')) return 653 | 654 | $parent = getParent($this) 655 | 656 | isActive = $parent.hasClass('open') 657 | 658 | if (!isActive || (isActive && e.keyCode == 27)) return $this.click() 659 | 660 | $items = $('[role=menu] li:not(.divider) a', $parent) 661 | 662 | if (!$items.length) return 663 | 664 | index = $items.index($items.filter(':focus')) 665 | 666 | if (e.keyCode == 38 && index > 0) index-- // up 667 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down 668 | if (!~index) index = 0 669 | 670 | $items 671 | .eq(index) 672 | .focus() 673 | } 674 | 675 | } 676 | 677 | function clearMenus() { 678 | getParent($(toggle)) 679 | .removeClass('open') 680 | } 681 | 682 | function getParent($this) { 683 | var selector = $this.attr('data-target') 684 | , $parent 685 | 686 | if (!selector) { 687 | selector = $this.attr('href') 688 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 689 | } 690 | 691 | $parent = $(selector) 692 | $parent.length || ($parent = $this.parent()) 693 | 694 | return $parent 695 | } 696 | 697 | 698 | /* DROPDOWN PLUGIN DEFINITION 699 | * ========================== */ 700 | 701 | $.fn.dropdown = function (option) { 702 | return this.each(function () { 703 | var $this = $(this) 704 | , data = $this.data('dropdown') 705 | if (!data) $this.data('dropdown', (data = new Dropdown(this))) 706 | if (typeof option == 'string') data[option].call($this) 707 | }) 708 | } 709 | 710 | $.fn.dropdown.Constructor = Dropdown 711 | 712 | 713 | /* APPLY TO STANDARD DROPDOWN ELEMENTS 714 | * =================================== */ 715 | 716 | $(function () { 717 | $('html') 718 | .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) 719 | $('body') 720 | .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 721 | .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) 722 | .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) 723 | }) 724 | 725 | }(window.jQuery);/* ========================================================= 726 | * bootstrap-modal.js v2.1.1 727 | * http://twitter.github.com/bootstrap/javascript.html#modals 728 | * ========================================================= 729 | * Copyright 2012 Twitter, Inc. 730 | * 731 | * Licensed under the Apache License, Version 2.0 (the "License"); 732 | * you may not use this file except in compliance with the License. 733 | * You may obtain a copy of the License at 734 | * 735 | * http://www.apache.org/licenses/LICENSE-2.0 736 | * 737 | * Unless required by applicable law or agreed to in writing, software 738 | * distributed under the License is distributed on an "AS IS" BASIS, 739 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 740 | * See the License for the specific language governing permissions and 741 | * limitations under the License. 742 | * ========================================================= */ 743 | 744 | 745 | !function ($) { 746 | 747 | "use strict"; // jshint ;_; 748 | 749 | 750 | /* MODAL CLASS DEFINITION 751 | * ====================== */ 752 | 753 | var Modal = function (element, options) { 754 | this.options = options 755 | this.$element = $(element) 756 | .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) 757 | this.options.remote && this.$element.find('.modal-body').load(this.options.remote) 758 | } 759 | 760 | Modal.prototype = { 761 | 762 | constructor: Modal 763 | 764 | , toggle: function () { 765 | return this[!this.isShown ? 'show' : 'hide']() 766 | } 767 | 768 | , show: function () { 769 | var that = this 770 | , e = $.Event('show') 771 | 772 | this.$element.trigger(e) 773 | 774 | if (this.isShown || e.isDefaultPrevented()) return 775 | 776 | $('body').addClass('modal-open') 777 | 778 | this.isShown = true 779 | 780 | this.escape() 781 | 782 | this.backdrop(function () { 783 | var transition = $.support.transition && that.$element.hasClass('fade') 784 | 785 | if (!that.$element.parent().length) { 786 | that.$element.appendTo(document.body) //don't move modals dom position 787 | } 788 | 789 | that.$element 790 | .show() 791 | 792 | if (transition) { 793 | that.$element[0].offsetWidth // force reflow 794 | } 795 | 796 | that.$element 797 | .addClass('in') 798 | .attr('aria-hidden', false) 799 | .focus() 800 | 801 | that.enforceFocus() 802 | 803 | transition ? 804 | that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) : 805 | that.$element.trigger('shown') 806 | 807 | }) 808 | } 809 | 810 | , hide: function (e) { 811 | e && e.preventDefault() 812 | 813 | var that = this 814 | 815 | e = $.Event('hide') 816 | 817 | this.$element.trigger(e) 818 | 819 | if (!this.isShown || e.isDefaultPrevented()) return 820 | 821 | this.isShown = false 822 | 823 | $('body').removeClass('modal-open') 824 | 825 | this.escape() 826 | 827 | $(document).off('focusin.modal') 828 | 829 | this.$element 830 | .removeClass('in') 831 | .attr('aria-hidden', true) 832 | 833 | $.support.transition && this.$element.hasClass('fade') ? 834 | this.hideWithTransition() : 835 | this.hideModal() 836 | } 837 | 838 | , enforceFocus: function () { 839 | var that = this 840 | $(document).on('focusin.modal', function (e) { 841 | if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { 842 | that.$element.focus() 843 | } 844 | }) 845 | } 846 | 847 | , escape: function () { 848 | var that = this 849 | if (this.isShown && this.options.keyboard) { 850 | this.$element.on('keyup.dismiss.modal', function ( e ) { 851 | e.which == 27 && that.hide() 852 | }) 853 | } else if (!this.isShown) { 854 | this.$element.off('keyup.dismiss.modal') 855 | } 856 | } 857 | 858 | , hideWithTransition: function () { 859 | var that = this 860 | , timeout = setTimeout(function () { 861 | that.$element.off($.support.transition.end) 862 | that.hideModal() 863 | }, 500) 864 | 865 | this.$element.one($.support.transition.end, function () { 866 | clearTimeout(timeout) 867 | that.hideModal() 868 | }) 869 | } 870 | 871 | , hideModal: function (that) { 872 | this.$element 873 | .hide() 874 | .trigger('hidden') 875 | 876 | this.backdrop() 877 | } 878 | 879 | , removeBackdrop: function () { 880 | this.$backdrop.remove() 881 | this.$backdrop = null 882 | } 883 | 884 | , backdrop: function (callback) { 885 | var that = this 886 | , animate = this.$element.hasClass('fade') ? 'fade' : '' 887 | 888 | if (this.isShown && this.options.backdrop) { 889 | var doAnimate = $.support.transition && animate 890 | 891 | this.$backdrop = $('