diff --git a/.gitignore b/.gitignore index 05ade97f..8c8ee162 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules npm-debug.log .idea +dist +*.html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a6a8d811..0542db9c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,24 +14,22 @@ npm install ``` -3. Start the auto-build scripts +3. Start the auto-build scripts, and leave them running ``` npm start ``` -4. Make changes **only** in the `/src` directory - > Please note that `api.js` is an exception to this rule: it appears only in `/dist`, and should be edited there. + > NOTE: These build scripts enable you to view your changes locally. The build generates new files in two places: a new `/dist` directory (JS, CSS, images, etc), and `.html` files in the root directory. However, these files are ignored by .gitignore, and will not be included in commits. -5. Open `/index.html` in any browser, and refresh the page after saving your changes to `/src`. +4. Make changes in the `/src` directory. The auto-build scripts instantly pick up any newly saved changes, and include them in the output files and directories. Open `/index.html` in any browser to view the website locally, and refresh the page after saving your changes to `/src`. --- ## Contribution guidelines ### HTML (Handlebars) pt.1 -* **Do not** edit the `.html` files in the root directory. They are created and updated by the build process. -* Instead, edit the `.handlebars` files in the `/src/handlebars` directory. +* Edit the `.handlebars` files in the `/src/handlebars` directory. These are built into HTML. * 'Handlebars' files should only include the `
` element, containing the page's content, and `{{> header}}` / `{{> footer }}` tags. ### HTML (Handlebars) pt.2 (creating a new .handlebars file) diff --git a/about.html b/about.html deleted file mode 100644 index ca384cce..00000000 --- a/about.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - About - AdoptOpenJDK - - - - - - - - - - - - - -
- - - -
- -

About

- - - -
- -

Mailing List 

-
- -

Submit an Issue 

-
-
- -
- - - - - - - - - diff --git a/archive.html b/archive.html deleted file mode 100644 index 282292b0..00000000 --- a/archive.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - Archive - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
- -
-

Archive

- -
- See the latest release - -
-
- -
- See the nightly builds - -
-
- -
- -
-

Filter by platform:

- -
- -
- - -
-
- -
- -
- -
- - - - - - - - - diff --git a/banner.html b/banner.html deleted file mode 100644 index 747beb91..00000000 --- a/banner.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/dist/assets/GitHub.png b/dist/assets/GitHub.png deleted file mode 100644 index 99f84e06..00000000 Binary files a/dist/assets/GitHub.png and /dev/null differ diff --git a/dist/assets/cloudflare.png b/dist/assets/cloudflare.png deleted file mode 100644 index 0db8a488..00000000 Binary files a/dist/assets/cloudflare.png and /dev/null differ diff --git a/dist/assets/facebook.png b/dist/assets/facebook.png deleted file mode 100644 index 322e3fa0..00000000 Binary files a/dist/assets/facebook.png and /dev/null differ diff --git a/dist/assets/favicon.ico b/dist/assets/favicon.ico deleted file mode 100755 index 6dcd214b..00000000 Binary files a/dist/assets/favicon.ico and /dev/null differ diff --git a/dist/assets/github-sponsor.png b/dist/assets/github-sponsor.png deleted file mode 100644 index 6f25e2c1..00000000 Binary files a/dist/assets/github-sponsor.png and /dev/null differ diff --git a/dist/assets/jenkins_headshot.png b/dist/assets/jenkins_headshot.png deleted file mode 100644 index 1dac957f..00000000 Binary files a/dist/assets/jenkins_headshot.png and /dev/null differ diff --git a/dist/assets/linaro.png b/dist/assets/linaro.png deleted file mode 100644 index d45c1b8e..00000000 Binary files a/dist/assets/linaro.png and /dev/null differ diff --git a/dist/assets/linux.png b/dist/assets/linux.png deleted file mode 100644 index b165396c..00000000 Binary files a/dist/assets/linux.png and /dev/null differ diff --git a/dist/assets/ljc.jpg b/dist/assets/ljc.jpg deleted file mode 100644 index 395f4045..00000000 Binary files a/dist/assets/ljc.jpg and /dev/null differ diff --git a/dist/assets/loading_dots.gif b/dist/assets/loading_dots.gif deleted file mode 100644 index 232fc8f9..00000000 Binary files a/dist/assets/loading_dots.gif and /dev/null differ diff --git a/dist/assets/mac.png b/dist/assets/mac.png deleted file mode 100644 index 20a14d36..00000000 Binary files a/dist/assets/mac.png and /dev/null differ diff --git a/dist/assets/macstadium.png b/dist/assets/macstadium.png deleted file mode 100644 index ea86a2da..00000000 Binary files a/dist/assets/macstadium.png and /dev/null differ diff --git a/dist/assets/packet.png b/dist/assets/packet.png deleted file mode 100644 index e0c5c636..00000000 Binary files a/dist/assets/packet.png and /dev/null differ diff --git a/dist/assets/ppc64le.png b/dist/assets/ppc64le.png deleted file mode 100644 index 842defd5..00000000 Binary files a/dist/assets/ppc64le.png and /dev/null differ diff --git a/dist/assets/s390x.png b/dist/assets/s390x.png deleted file mode 100644 index 59eeb3e2..00000000 Binary files a/dist/assets/s390x.png and /dev/null differ diff --git a/dist/assets/scaleway.png b/dist/assets/scaleway.png deleted file mode 100644 index b5a20a84..00000000 Binary files a/dist/assets/scaleway.png and /dev/null differ diff --git a/dist/assets/slack.png b/dist/assets/slack.png deleted file mode 100644 index 8ef9e799..00000000 Binary files a/dist/assets/slack.png and /dev/null differ diff --git a/dist/assets/squares-logo.png b/dist/assets/squares-logo.png deleted file mode 100644 index e567b5e0..00000000 Binary files a/dist/assets/squares-logo.png and /dev/null differ diff --git a/dist/assets/twitter.png b/dist/assets/twitter.png deleted file mode 100644 index 114072d4..00000000 Binary files a/dist/assets/twitter.png and /dev/null differ diff --git a/dist/assets/windows.png b/dist/assets/windows.png deleted file mode 100644 index 9435402b..00000000 Binary files a/dist/assets/windows.png and /dev/null differ diff --git a/dist/css/styles.css b/dist/css/styles.css deleted file mode 100644 index cf11a71d..00000000 --- a/dist/css/styles.css +++ /dev/null @@ -1,718 +0,0 @@ -/**** RESPONSIVE MASTER SETTINGS ****/ -html { - font: 16px sans-serif; - font-weight: 300; } - -h1, h2, h3, h4, button, input, optgroup, select, textarea { - font-family: sans-serif; - font-weight: 300; } - -p { - line-height: 1.8rem; } - -@media all and (max-width: 800px) { - html { - font-size: 15px; } } - -@media all and (max-width: 500px) { - html { - font-size: 14px; } } - -.blue-bg { - background-color: #152935 !important; - color: #F5F5F5 !important; } - -.light-text { - color: #F5F5F5; } - -.grey-bg { - background-color: #F5F5F5; - color: #152935; } - -.dark-link, .dark-link:visited, a, a:visited { - color: #152935; - cursor: pointer; } - -.dark-link:hover, a:hover { - color: #3D70B2; } - -.light-link, .light-link:visited { - color: #F5F5F5; } - -.light-link:hover { - color: #3D70B2; } - -.blue-link-section a { - text-decoration: none; } - -.blue-link-section a *, .blue-link-section a { - color: #3D70B2; - text-decoration: none; } - -.blue-link-section a *:hover, .blue-link-section a:hover { - text-decoration: underline; } - -.full-width { - width: 100%; } - -.no-underline { - text-decoration: none; } - -.bold { - font-weight: bold; } - -.hide { - display: none !important; } - -.invisible { - visibility: hidden; } - -.block { - display: block; } - -.inline-block { - display: inline-block; } - -.zero-margin { - margin: 0; } - -.margin-auto { - margin: 0 auto; } - -.margin-bottom { - margin-bottom: 4rem; } - -.margin-top-4 { - margin-top: 4rem; } - -.large-title { - font-size: 3rem; - margin-top: 0; } - -.align-left { - text-align: left; } - -.align-center { - text-align: center; } - -.vertical-align-top { - vertical-align: top; } - -.fully-center-child { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); } - -.vertically-center-child { - position: absolute; - top: 50%; - transform: translateY(-50%); } - -.vertically-center-parent { - position: relative; } - -.social-icon { - margin: 0 0.5rem; } - -.social-icon img { - height: 2rem; - margin: 0 auto; - opacity: 0.5; - transition-duration: 0.2s; } - -.social-icon img:hover { - opacity: 1; } - -input { - padding: 0.5rem; - min-width: 12rem; - margin-top: 1rem; - text-align: center; } - -.cursor-pointer { - cursor: pointer; } - -.animated.fadeIn { - animation-duration: 0.3s; } - -nav { - position: relative; } - -#logo { - margin: 2.15rem auto; - font-size: 1.4rem; - display: table; - cursor: pointer; - color: #F5F5F5; } - -#logo div { - display: table-cell; - vertical-align: middle; } - -#logo img { - width: 2rem; - margin-right: 0.6rem; - transform: translateY(0.1rem); } - -#header-social-bar { - position: absolute; - margin-right: 2rem; - line-height: 1; - top: 50%; - transform: translateY(-50%); - right: 0; } - -#menu-button { - font-size: 2rem; - color: #F5F5F5; - position: absolute; - margin-left: 2rem; - cursor: pointer; - line-height: 1; - padding: 2rem 1rem; - top: 50%; - transform: translateY(-50%); } - -#menu-button:hover { - color: #dadada; } - -#menu-container { - position: fixed; - background-color: #e6e6e6; - z-index: 100; - width: 90%; - max-width: 16rem; - padding: 0 2rem 2rem 2rem; - top: 0; - left: 0; - height: 100%; - animation-duration: 0.25s; } - -#menu-header { - background-color: #F5F5F5; - width: 20rem; - transform: translateX(-2rem); } - -#menu-close { - font-size: 2rem; - padding: 1.98rem; - display: block; - text-align: center; - cursor: pointer; } - -#menu-close:hover { - color: #3D70B2; } - -#menu-content { - overflow: auto; - height: 80%; - margin: 2rem 0; } - -#menu-content a { - text-decoration: none; - display: block; - padding: .8rem 0; } - -#menu-content p { - border-bottom: 1px solid #dadada; - margin: 0; - line-height: 1.2rem; } - -#menu-social-bar { - display: inline-block; - filter: brightness(0); - margin: 1rem auto 3rem; } - -html, body { - max-width: 100%; - overflow-x: hidden; } - -main { - padding: 2rem 2rem 5rem 2rem; - text-align: center; } - -.home-main { - padding: 3rem 2rem 5rem 2rem; } - -#error-container { - text-align: center; - color: red; } - -.grey-button { - background-color: #dadada; - color: #152935 !important; - border-radius: 0.2rem; - padding: 0 1.5rem; - line-height: 2rem; - font-size: 1rem; - cursor: pointer; - display: inline-block; - margin: 0.2rem; } - -.grey-button:hover { - background-color: #e6e6e6; - color: #152935 !important; } - -.selected-grey { - background-color: #e6e6e6; - cursor: default; } - -.blue-button { - background-color: #3D70B2; - color: #F5F5F5 !important; - border-radius: 0.2rem; - padding: 0 1.5rem; - line-height: 2rem; - font-size: 1rem; - cursor: pointer; - display: inline-block; - margin: 0.2rem; } - -.blue-button:hover { - background-color: #447cc3; - color: #F5F5F5 !important; } - -.a-button { - text-decoration: none; } - -#search-error { - text-align: center; - margin-top: 2rem; } - -.info-page-container { - max-width: 50rem; - margin: auto; - text-align: left; } - -.info-page-container li { - margin-top: 2rem; } - -pre { - background-color: #e8e8e8; - border-radius: 0.5rem; - box-shadow: #c3c3c3 0px 2.5px 0px 0px; - box-sizing: border-box; - color: #585858; - font-family: Consolas, monospace; - overflow: auto; - padding: 1rem; - white-space: pre-wrap; } - -code { - box-sizing: border-box; - overflow: auto; - white-space: pre; } - -.callout { - background-color: rgba(21, 41, 53, 0.05); - border-left: 0.5rem solid #152935; - padding: 0.5rem 1rem; } - -footer { - padding: 2rem; - text-align: center; - font-size: 0.7rem; } - -footer p { - max-width: 20rem; - margin: auto; } - -.footer-icon { - margin: 0 1rem 1.5rem 1rem; - transition-duration: 0.2s; } - -.footer-icon:hover { - opacity: 0.7; } - -.footer-icon a:hover { - color: #F5F5F5; } - -.footer-icon img { - height: 3rem; - margin: 0 auto; } - -#footer-social-bar { - margin-bottom: 1rem; - display: none; } - -/* The alert message box */ -.alert { - padding: 20px; - background-color: #ff9800; - /* orange */ - color: white; } - -/* The close button */ -.closebtn { - margin-left: 15px; - color: white; - font-weight: bold; - float: right; - font-size: 22px; - line-height: 20px; - cursor: pointer; - transition: 0.3s; } - -/* When moving the mouse over the close button */ -.closebtn:hover { - color: black; } - -.goog-te-gadget-simple { - padding: .25rem .4rem .4rem .4rem !important; - font-family: opensans !important; - font-size: 0.8rem !important; - background-color: rgba(255, 255, 255, 0.2) !important; - border: none !important; } - -img.goog-te-gadget-icon { - margin-right: 0.2rem; } - -.goog-te-menu-value span { - color: white !important; } - -.goog-te-menu-value span:nth-child(3) { - display: none !important; } - -.sponsor-table { - border-collapse: separate; - border-spacing: 0 1rem; } - -.sponsor-table td { - padding: 2rem; - background-color: white; - line-height: 1.8rem; } - -.sponsor-table td img { - width: 8rem; } - -#services-grid { - margin: auto; } - -#services-grid tr { - text-align: center; } - -#services-grid td { - vertical-align: bottom; - display: inline-block; - margin: 2rem 3rem; } - -.sponsors img { - transition-duration: 0.2s; } - -.sponsors img:hover { - opacity: 0.5; } - -#services-grid img { - width: 8rem; } - -@media all and (max-width: 800px) { - .sponsor-table td { - padding: 1rem; - display: block; } - .sponsors { - text-align: center; } } - -main .intro { - max-width: 40rem; - margin-bottom: 1rem; - margin-left: auto; - margin-right: auto; - width: 80%; - line-height: 1.8rem; } - -main .intro i { - font-size: 1.8rem; - margin-right: 0.5rem; - transform: translateY(0.3rem); } - -main .intro a { - text-decoration: none; - color: #3D70B2; } - -main .intro a:hover { - text-decoration: underline; - color: #3D70B2; } - -#loading-index { - position: absolute; - left: 50%; - transform: translate(-50%, 0.1rem); } - -.dl-container { - margin: 0 auto; } - -a.dl-button { - background-color: #3D70B2; - color: #F5F5F5; - border-radius: 0.2rem; - width: 20rem; - line-height: 5rem; - font-size: 1.5rem; - margin: 1.2rem 0.6rem 0 0.6rem; - cursor: pointer; - display: inline-block; - transition-duration: 0.1s; } - -#dl-text { - margin-top: 2.5rem; - margin-bottom: 0; } - -a.dl-button #dl-version { - transform: translateY(-0.6rem); } - -a.dl-button .dl-description { - font-size: .8rem; - position: absolute; - left: 50%; - transform: translate(-50%, -3.8rem); } - -a.dl-button:hover { - background-color: #447cc3; - color: #F5F5F5; } - -a.dl-thin-button { - line-height: 2rem; - font-size: 1rem; - background-color: #dadada; - color: #152935; - display: block; - margin: 1rem auto; } - -a.dl-thin-button:hover { - background-color: #e6e6e6; - color: #152935; } - -.home-links { - padding: 0 1rem; } - -h2.transition-bright { - color: #0085ff; - transition-duration: 1s; } - -#minor-links { - margin-top: 2rem; } - -@media all and (max-width: 300px) { - #minor-links a { - display: block; - margin: 0.5rem 0; } - #minor-links span { - display: none; } } - -.divider { - margin: 0 0.2rem; } - -#table-parent { - margin: 0 auto; } - -#nightly-list { - width: 90%; - overflow: auto; - max-width: 80rem; - margin: auto; - margin-top: 2rem; - text-align: left; } - -.nightly-container { - white-space: nowrap; - color: #152935; - border: 0.1rem solid #F5F5F5; } - -th { - white-space: nowrap; } - -.nightly-container div { - display: inline-block; } - -.nightly-container > td { - padding: 0.5rem 1rem; } - -.nightly-container > td:nth-child(odd) { - background-color: #d0d0d0; } - -.nightly-container > td:nth-child(even) { - background-color: #e2e2e2; } - -th { - padding: .4rem 1rem; - background-color: #152935; - color: #F5F5F5; } - -#nightly-table tr td:nth-child(3), #nightly-table th:nth-child(3) { - /*display: none;*/ } - -#latest-build-name { - font-size: 3rem; - font-weight: bold; - margin: 0; } - -#latest-intro { - margin: 1rem 0; } - -#latest-metadata-table { - color: #F5F5F5; - margin: 0 auto; } - -#latest-metadata-table td { - padding: 0.5rem 1.5rem; } - -#latest-metadata-table td:first-child { - border-radius: 0.3rem 0 0 0.3rem; } - -#latest-metadata-table td:last-child { - border-radius: 0 0.3rem 0.3rem 0; } - -#latest-metadata-table td:nth-child(even) { - background-color: #1F2F4E; } - -#latest-metadata-table td:nth-child(odd) { - background-color: #182336; } - -.latest-block { - display: inline-block; - vertical-align: top; - margin: 3rem 2.5rem 1rem; } - -.latest-platform { - font-size: 1.5rem; } - -.latest-platform img { - height: 3.5rem; } - -a.latest-download-button { - background-color: #3D70B2; - display: block; - color: #F5F5F5; - border-radius: 0.2rem; - min-width: 14rem; - line-height: 2.5rem; - cursor: pointer; - margin: 1rem 0; } - -a.latest-download-button:hover { - background-color: #447cc3; - color: #F5F5F5; } - -.latest-details { - font-size: 0.8rem; } - -.latest-details p { - line-height: 1.2rem; } - -.small-dl-text { - font-size: .7rem; - line-height: 1.2rem; - transform: translateY(-0.4rem); - color: rgba(255, 255, 255, 0.64); } - -#archive-list { - overflow: auto; } - -.archive-container { - margin: 0 auto; - border-collapse: separate; - border-spacing: .2rem 2rem; - white-space: nowrap; } - -.archive-container > tbody > tr > td { - padding: 1rem 2rem; - background-color: #fff; - margin: 3rem 0.1rem; - font-size: 0.8rem; } - -.archive-container .grey-button { - font-size: inherit; } - -.archive-platforms { - border-spacing: .5rem 0; } - -.archive-details div { - margin: 0.5rem auto; } - -@media all and (max-width: 1100px) { - .latest-download-button { - min-width: 0; } } - -@media all and (max-width: 950px) { - .vertically-center-parent { - position: initial; } - .vertically-center-child { - position: initial; - top: initial; - transform: initial; } } - -@media all and (max-width: 800px) { - #latest-metadata-table td { - display: inline-block; - width: 80%; - border-radius: 0 !important; } - .latest-download-button { - min-width: 0; } - #latest-build-name { - font-size: 2rem; } - .large-title { - font-size: 2rem; } } - -@media all and (max-width: 650px) { - main { - padding: 2rem 1rem 5rem 1rem; } - main .intro { - width: 100%; } - #header-social-bar { - display: none; } - #footer-social-bar { - display: block; } - a.dl-button { - width: 100%; - margin: 0 auto; - margin-top: 1.2rem; } - a.dl-button .dl-description { - transform: translate(-50%, -3.8rem); - left: 50%; } - .home-links { - display: block; } - #menu-button { - margin-left: 0; - font-size: 1.5rem; - padding: 2.2rem 1rem; } - .latest-block { - display: inline-block; - vertical-align: top; - margin: 2rem 0 1rem 0; - width: 85%; } - #latest-build-name { - font-size: 1.5rem; } - input { - min-width: 0; - max-width: 80%; } } - -main .support { - max-width: 40rem; - margin: 0 auto; - width: 80%; } - -main .support h2 { - text-align: center; } - -main.about p, main.about ul { - max-width: 40rem; - margin: 1rem auto; - width: 80%; - text-align: left; - line-height: 1.8rem; } - -main.getinvolved p, main.getinvolved ul { - max-width: 40rem; - margin: 1rem auto; - width: 80%; - text-align: left; - line-height: 1.8rem; } - -main.getinvolved a { - text-decoration: none; - color: #3D70B2; } - -main.getinvolved a:hover { - text-decoration: underline; - color: #3D70B2; } diff --git a/dist/css/styles.min.css b/dist/css/styles.min.css deleted file mode 100644 index 0be64c3a..00000000 --- a/dist/css/styles.min.css +++ /dev/null @@ -1 +0,0 @@ -code,pre{box-sizing:border-box;overflow:auto}#archive-list,#menu-content,#nightly-list,code,pre{overflow:auto}html{font:16px sans-serif;font-weight:300}button,h1,h2,h3,h4,input,optgroup,select,textarea{font-family:sans-serif;font-weight:300}.bold,.closebtn{font-weight:700}p{line-height:1.8rem}@media all and (max-width:800px){html{font-size:15px}}@media all and (max-width:500px){html{font-size:14px}}.blue-bg{background-color:#152935!important;color:#F5F5F5!important}#menu-header,.grey-bg{background-color:#F5F5F5}.light-text{color:#F5F5F5}.grey-bg{color:#152935}.dark-link,.dark-link:visited,a,a:visited{color:#152935;cursor:pointer}.dark-link:hover,a:hover{color:#3D70B2}.light-link,.light-link:visited{color:#F5F5F5}#menu-close:hover,.light-link:hover{color:#3D70B2}.blue-link-section a,.blue-link-section a *{color:#3D70B2;text-decoration:none}.blue-link-section a :hover,.blue-link-section a:hover{text-decoration:underline}#menu-content a,.a-button,.no-underline,main .intro a{text-decoration:none}.full-width{width:100%}#services-grid img,.sponsor-table td img{width:8rem}.hide{display:none!important}#menu-close,.block{display:block}.invisible{visibility:hidden}#menu-social-bar,.inline-block{display:inline-block}.zero-margin{margin:0}.margin-auto{margin:0 auto}.margin-bottom{margin-bottom:4rem}.margin-top-4{margin-top:4rem}.large-title{font-size:3rem;margin-top:0}.align-left{text-align:left}#error-container,#menu-close,#search-error,.align-center,input,main{text-align:center}.vertical-align-top{vertical-align:top}.fully-center-child{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vertically-center-child{position:absolute;top:50%;transform:translateY(-50%)}.vertically-center-parent,nav{position:relative}#header-social-bar,#menu-button{position:absolute;top:50%;transform:translateY(-50%)}.social-icon{margin:0 .5rem}.social-icon img{height:2rem;margin:0 auto;opacity:.5;transition-duration:.2s}.social-icon img:hover{opacity:1}input{padding:.5rem;min-width:12rem;margin-top:1rem}.cursor-pointer{cursor:pointer}.animated.fadeIn{animation-duration:.3s}#logo{margin:2.15rem auto;font-size:1.4rem;display:table;cursor:pointer;color:#F5F5F5}#menu-button,#menu-close{font-size:2rem;cursor:pointer}#logo div{display:table-cell;vertical-align:middle}#logo img{width:2rem;margin-right:.6rem;transform:translateY(.1rem)}#header-social-bar{margin-right:2rem;line-height:1;right:0}#menu-button{color:#F5F5F5;margin-left:2rem;line-height:1;padding:2rem 1rem}#menu-button:hover{color:#dadada}#menu-container{position:fixed;background-color:#e6e6e6;z-index:100;width:90%;max-width:16rem;padding:0 2rem 2rem;top:0;left:0;height:100%;animation-duration:.25s}#menu-header{width:20rem;transform:translateX(-2rem)}#menu-close{padding:1.98rem}#menu-content{height:80%;margin:2rem 0}#menu-content a{display:block;padding:.8rem 0}#menu-content p{border-bottom:1px solid #dadada;margin:0;line-height:1.2rem}#menu-social-bar{filter:brightness(0);margin:1rem auto 3rem}body,html{max-width:100%;overflow-x:hidden}main{padding:2rem 2rem 5rem}.home-main{padding:3rem 2rem 5rem}.blue-button,.grey-button{border-radius:.2rem;padding:0 1.5rem;line-height:2rem;font-size:1rem;display:inline-block;margin:.2rem}#error-container{color:red}.grey-button{background-color:#dadada;color:#152935!important;cursor:pointer}.grey-button:hover{background-color:#e6e6e6;color:#152935!important}.selected-grey{background-color:#e6e6e6;cursor:default}.blue-button{background-color:#3D70B2;color:#F5F5F5!important;cursor:pointer}.blue-button:hover{background-color:#447cc3;color:#F5F5F5!important}#search-error{margin-top:2rem}.info-page-container{max-width:50rem;margin:auto;text-align:left}#services-grid tr,footer{text-align:center}.info-page-container li{margin-top:2rem}pre{background-color:#e8e8e8;border-radius:.5rem;box-shadow:#c3c3c3 0 2.5px 0 0;color:#585858;font-family:Consolas,monospace;padding:1rem;white-space:pre-wrap}code{white-space:pre}.callout{background-color:rgba(21,41,53,.05);border-left:.5rem solid #152935;padding:.5rem 1rem}footer{padding:2rem;font-size:.7rem}footer p{max-width:20rem;margin:auto}.footer-icon{margin:0 1rem 1.5rem;transition-duration:.2s}.footer-icon:hover{opacity:.7}.footer-icon a:hover{color:#F5F5F5}.footer-icon img{height:3rem;margin:0 auto}#footer-social-bar{margin-bottom:1rem;display:none}.alert{padding:20px;background-color:#ff9800;color:#fff}.closebtn{margin-left:15px;color:#fff;float:right;font-size:22px;line-height:20px;cursor:pointer;transition:.3s}.closebtn:hover{color:#000}.goog-te-gadget-simple{padding:.25rem .4rem .4rem!important;font-family:opensans!important;font-size:.8rem!important;background-color:rgba(255,255,255,.2)!important;border:none!important}img.goog-te-gadget-icon{margin-right:.2rem}.goog-te-menu-value span{color:#fff!important}.goog-te-menu-value span:nth-child(3){display:none!important}.sponsor-table{border-collapse:separate;border-spacing:0 1rem}.sponsor-table td{padding:2rem;background-color:#fff;line-height:1.8rem}#services-grid{margin:auto}#services-grid td{vertical-align:bottom;display:inline-block;margin:2rem 3rem}.sponsors img{transition-duration:.2s}.sponsors img:hover{opacity:.5}@media all and (max-width:800px){.sponsor-table td{padding:1rem;display:block}.sponsors{text-align:center}}main .intro{max-width:40rem;margin-bottom:1rem;margin-left:auto;margin-right:auto;width:80%;line-height:1.8rem}main .intro i{font-size:1.8rem;margin-right:.5rem;transform:translateY(.3rem)}main .intro a{color:#3D70B2}main .intro a:hover{text-decoration:underline;color:#3D70B2}#loading-index{position:absolute;left:50%;transform:translate(-50%,.1rem)}.dl-container{margin:0 auto}a.dl-button{background-color:#3D70B2;color:#F5F5F5;border-radius:.2rem;width:20rem;line-height:5rem;font-size:1.5rem;margin:1.2rem .6rem 0;cursor:pointer;display:inline-block;transition-duration:.1s}#dl-text{margin-top:2.5rem;margin-bottom:0}a.dl-button #dl-version{transform:translateY(-.6rem)}a.dl-button .dl-description{font-size:.8rem;position:absolute;left:50%;transform:translate(-50%,-3.8rem)}a.dl-button:hover{background-color:#447cc3;color:#F5F5F5}a.dl-thin-button{line-height:2rem;font-size:1rem;background-color:#dadada;color:#152935;display:block;margin:1rem auto}a.dl-thin-button:hover{background-color:#e6e6e6;color:#152935}.home-links{padding:0 1rem}h2.transition-bright{color:#0085ff;transition-duration:1s}#minor-links{margin-top:2rem}@media all and (max-width:300px){#minor-links a{display:block;margin:.5rem 0}#minor-links span{display:none}}.latest-block,.nightly-container div{display:inline-block}.divider{margin:0 .2rem}#table-parent{margin:0 auto}#nightly-list{width:90%;max-width:80rem;margin:2rem auto auto;text-align:left}.nightly-container{white-space:nowrap;color:#152935;border:.1rem solid #F5F5F5}.nightly-container>td{padding:.5rem 1rem}.nightly-container>td:nth-child(odd){background-color:#d0d0d0}.nightly-container>td:nth-child(even){background-color:#e2e2e2}th{white-space:nowrap;padding:.4rem 1rem;background-color:#152935;color:#F5F5F5}#latest-build-name{font-size:3rem;font-weight:700;margin:0}#latest-intro{margin:1rem 0}#latest-metadata-table{color:#F5F5F5;margin:0 auto}#latest-metadata-table td{padding:.5rem 1.5rem}#latest-metadata-table td:first-child{border-radius:.3rem 0 0 .3rem}#latest-metadata-table td:last-child{border-radius:0 .3rem .3rem 0}#latest-metadata-table td:nth-child(even){background-color:#1F2F4E}#latest-metadata-table td:nth-child(odd){background-color:#182336}.latest-block{vertical-align:top;margin:3rem 2.5rem 1rem}.latest-platform{font-size:1.5rem}.latest-platform img{height:3.5rem}a.latest-download-button{background-color:#3D70B2;display:block;color:#F5F5F5;border-radius:.2rem;min-width:14rem;line-height:2.5rem;cursor:pointer;margin:1rem 0}.latest-details p,.small-dl-text{line-height:1.2rem}a.latest-download-button:hover{background-color:#447cc3;color:#F5F5F5}.latest-details{font-size:.8rem}.small-dl-text{font-size:.7rem;transform:translateY(-.4rem);color:rgba(255,255,255,.64)}.archive-container{margin:0 auto;border-collapse:separate;border-spacing:.2rem 2rem;white-space:nowrap}.archive-container>tbody>tr>td{padding:1rem 2rem;background-color:#fff;margin:3rem .1rem;font-size:.8rem}.archive-container .grey-button{font-size:inherit}.archive-platforms{border-spacing:.5rem 0}.archive-details div{margin:.5rem auto}@media all and (max-width:1100px){.latest-download-button{min-width:0}}@media all and (max-width:950px){.vertically-center-parent{position:initial}.vertically-center-child{position:initial;top:initial;transform:initial}}@media all and (max-width:800px){#latest-metadata-table td{display:inline-block;width:80%;border-radius:0!important}.latest-download-button{min-width:0}#latest-build-name,.large-title{font-size:2rem}}@media all and (max-width:650px){#latest-build-name,#menu-button{font-size:1.5rem}main{padding:2rem 1rem 5rem}main .intro{width:100%}#header-social-bar{display:none}#footer-social-bar,.home-links{display:block}a.dl-button{width:100%;margin:1.2rem auto 0}a.dl-button .dl-description{transform:translate(-50%,-3.8rem);left:50%}#menu-button{margin-left:0;padding:2.2rem 1rem}.latest-block{display:inline-block;vertical-align:top;margin:2rem 0 1rem;width:85%}input{min-width:0;max-width:80%}}main .support{max-width:40rem;margin:0 auto;width:80%}main .support h2{text-align:center}main.about p,main.about ul,main.getinvolved p,main.getinvolved ul{max-width:40rem;margin:1rem auto;width:80%;text-align:left;line-height:1.8rem}main.getinvolved a{text-decoration:none;color:#3D70B2}main.getinvolved a:hover{text-decoration:underline;color:#3D70B2} \ No newline at end of file diff --git a/dist/js/app.js b/dist/js/app.js deleted file mode 100644 index e8523656..00000000 --- a/dist/js/app.js +++ /dev/null @@ -1,709 +0,0 @@ -// set platforms array - CHANGE THIS TO UPDATE WEBSITE PLATFORMS -// GUIDE TO THE PLATFORMS ARRAY: -// officialName: The 'legal name' or official name for the OS. This is displayed on most pages. -// searchableName: a string that appears in the name of the binaries and checksums, that can be used to identify the platform. -// logo: examplefilename.png. The path to the logo folder is set below (the 'logoPath' var). -// fileExtension: should include the dot at the beginning of the extension, e.g .tar.gz or .zip -// requirements: currently just displayed on the 'latest release' page. Should be a short string identifying the most important min. requirement of a machine to run the latest release. -// architecture: 64 or 32. May be required for differentiation between future builds. -// osDetectionString: this string is searched by the OS detection library platform.js to find a match. Include as many words as you like, separated by spaces. -var platforms = [ - { - officialName: "Linux x86-64", - searchableName: "X64_LINUX", - logo: "linux.png", - fileExtension: ".tar.gz", - requirements: "GLIBC 2.5 and above", - architecture: "64", - osDetectionString: "Linux Mint Debian Fedora FreeBSD Gentoo Haiku Kubuntu OpenBSD Red Hat RHEL SuSE Ubuntu Xubuntu hpwOS webOS Tizen" - }, - { - officialName: "Linux s390x", - searchableName: "S390X_LINUX", - logo: "s390x.png", - fileExtension: ".tar.gz", - requirements: "GLIBC 2.5 and above", - architecture: "64", - osDetectionString: "not-to-be-detected" - }, - { - officialName: "Linux ppc64le", - searchableName: "PPC64LE_LINUX", - logo: "ppc64le.png", - fileExtension: ".tar.gz", - requirements: "GLIBC 2.5 and above", - architecture: "64", - osDetectionString: "not-to-be-detected" - }, - /*{ - officialName: "Linux arm", - searchableName: "ARM_LINUX", - logo: "linux.png", - fileExtension: ".tar.gz", - requirements: "GLIBC 2.5 and above", - architecture: "64", - osDetectionString: "not-to-be-detected" - },*/ - /*{ - officialName: "Windows x86-64", - searchableName: "WIN", - logo: "windows.png", - fileExtension: ".zip", - requirements: "VS 2010 and above", - architecture: "64", - osDetectionString: "Windows Win Cygwin" - }*/ - { - officialName: "macOS x86-64", - searchableName: "X64_MAC", - logo: "mac.png", - fileExtension: ".tar.gz", - requirements: "macOS 10.8 and above", - architecture: "64", - osDetectionString: "Mac OS X OSX macOS Macintosh" - } -]; - -// FUNCTIONS FOR GETTING PLATFORM DATA -// allows us to use, for example, 'lookup["MAC"];' -var lookup = {}; -for (var i = 0, len = platforms.length; i < len; i++) { - lookup[platforms[i].searchableName] = platforms[i]; -} - -// gets the 'searchableName' when you pass in the full filename. -// If the filename does not match a known platform, returns false. (E.g. if a new or incorrect file appears in a repo) -function getSearchableName(filename) { - var platform = null; - platforms.forEach(function(eachPlatform) { - if(filename.indexOf(eachPlatform.searchableName) >= 0) { - platform = eachPlatform.searchableName; - } - }); - if(platform) { - return (lookup[platform].searchableName); - } - else { - return null; - } -} - -// set path to logos -var logoPath = "./dist/assets/"; - -// gets the OFFICIAL NAME when you pass in 'searchableName' -function getOfficialName(searchableName) { - return (lookup[searchableName].officialName); -} - -// gets the FILE EXTENSION when you pass in 'searchableName' -function getFileExt(searchableName) { - return (lookup[searchableName].fileExtension); -} - -// gets the LOGO WITH PATH when you pass in 'searchableName' -function getLogo(searchableName) { - return (logoPath + (lookup[searchableName].logo)); -} - -// gets the PLATFORM REQUIREMENTS when you pass in 'searchableName' -function getRequirements(searchableName) { - return (lookup[searchableName].requirements); -} - -// set value for loading dots on every page -var loading = document.getElementById("loading"); - -// set value for error container on every page -var errorContainer = document.getElementById('error-container'); - -// set variable names for menu elements -const menuOpen = document.getElementById('menu-button'); -const menuClose = document.getElementById('menu-close'); -const menu = document.getElementById('menu-container'); - -menuOpen.onclick = function() { - menu.className = menu.className.replace( /(?:^|\s)slideOutLeft(?!\S)/g , ' slideInLeft' ); // slide in animation - menu.className = menu.className.replace( /(?:^|\s)hide(?!\S)/g , ' animated' ); // removes initial hidden property, activates animations -} - -menuClose.onclick = function() { - menu.className = menu.className.replace( /(?:^|\s)slideInLeft(?!\S)/g , ' slideOutLeft' ); // slide out animation -} - -// this function returns an object containing all information about the user's OS (from the 'platforms' array) -function detectOS() { - // if the platform detection library's output matches the 'osDetectionString' of any platform object in the 'platforms' array... - // ...set the variable 'matchedOS' as the whole object. Else, 'matchedOS' will be null. - var matchedOS = null; - platforms.forEach(function(eachPlatform) { - var thisPlatformMatchingString = eachPlatform.osDetectionString.toUpperCase(); - /* eslint-disable */ - var platformFamily = platform.os.family.toUpperCase(); // platform.os.family is dependent on 'platform.js', loaded by index.html (injected in index.handlebars) - /* eslint-enable */ - if(thisPlatformMatchingString.indexOf(platformFamily) >= 0) { // if the detected 'platform family' string appears in the osDetectionString value of a platform... - matchedOS = eachPlatform; - } - }); - - if(matchedOS){ return matchedOS; } else { return null; } -} - -// when using this function, pass in the name of the repo (options: releases, nightly) -function loadReleasesJSON(repo, filename, callback) { - if(msieversion() == true) { // if the browser is IE, display an error with advice, because important website features do not work in IE. - loading.innerHTML = ""; - document.getElementById("error-container").innerHTML = "

Internet Explorer is not supported. Please use another browser, or see the releases list on GitHub.

"; - } - else { - var url = ("https://raw.githubusercontent.com/AdoptOpenJDK/openjdk-" + repo + "/master/" + filename + ".json"); // the URL of the JSON built in the website back-end - var xobj = new XMLHttpRequest(); - xobj.overrideMimeType("application/json"); - xobj.open('GET', url, true); - xobj.onreadystatechange = function() { - if (xobj.readyState == 4 && xobj.status == "200") { // if the status is 'ok', run the callback function that has been passed in. - callback(xobj.responseText); - } else if(xobj.status != "200") { // if the status is NOT 'ok', remove the loading dots, and display an error: - loading.innerHTML = ""; - document.getElementById("error-container").innerHTML = "

Error... there's a problem fetching the releases. Please see the releases list on GitHub.

"; - } - }; - xobj.send(null); - } -} - -// check for IE browser -function msieversion() { - var ua = window.navigator.userAgent; - var msie = ua.indexOf("MSIE "); - if (msie >= 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { - return true; - } - else { return false; } -} - -// set variables for HTML elements -var platformDropDown = document.getElementById("platform-dropdown"); -var archiveTableBody = document.getElementById("archive-table-body"); - -// When releases page loads, run: -/* eslint-disable no-unused-vars */ -function onArchiveLoad() { - /* eslint-enable no-unused-vars */ - populateArchive(); // populate the Archive page -} - -// ARCHIVE PAGE FUNCTIONS - -function populateArchive() { - - // call the XmlHttpRequest function in global.js, passing in 'releases' as the repo, and a long function as the callback. - loadReleasesJSON("releases", "releases", function(response) { - function checkIfProduction(x) { // used by the array filter method below. - return x.prerelease === false && x.assets[0]; - } - - // Step 1: create a JSON from the XmlHttpRequest response - // Step 2: filter out all releases from this JSON that are marked as 'pre-release' in GitHub. - var releasesJson = JSON.parse(response).filter(checkIfProduction); - - // if there are releases prior to the 'latest' one (i.e. archived releases)... - if (typeof releasesJson[0] !== 'undefined') { - buildArchiveHTML(releasesJson); - } else { // if there are no releases (beyond the latest one)... - // report an error, remove the loading dots - loading.innerHTML = ""; - errorContainer.innerHTML = "

There are no archived releases yet! See the Latest release page.

"; - } - }); -} - -function buildArchiveHTML(releasesJson) { - // for each release... - releasesJson.forEach(function(eachRelease) { - - // set values for this release, ready to inject into HTML - var publishedAt = eachRelease.published_at; - var thisReleaseName = eachRelease.name; - var thisReleaseDate = moment(publishedAt).format('Do MMMM YYYY'); - var thisGitLink = ("https://github.com/AdoptOpenJDK/openjdk-releases/releases/tag/" + thisReleaseName); - var thisTimestamp = (publishedAt.slice(0, 4) + publishedAt.slice(8, 10) + publishedAt.slice(5, 7) + publishedAt.slice(11, 13) + publishedAt.slice(14, 16)); - var platformTableRows = ""; // an empty var where new table rows can be added for each platform - - // create an array of the details for each asset that is attached to this release - var assetArray = []; - eachRelease.assets.forEach(function(each) { - assetArray.push(each); - }); - - // populate 'platformTableRows' with one row per binary for this release... - assetArray.forEach(function(eachAsset) { - var nameOfFile = (eachAsset.name); - var uppercaseFilename = nameOfFile.toUpperCase(); // make the name of the asset uppercase - var thisPlatform = getSearchableName(uppercaseFilename); // get the searchableName, e.g. MAC or X64_LINUX. - - // firstly, check if the platform name is recognised... - if(thisPlatform) { - - // secondly, check if the file has the expected file extension for that platform... - // (this filters out all non-binary attachments, e.g. SHA checksums - these contain the platform name, but are not binaries) - var thisFileExtension = getFileExt(thisPlatform); // get the file extension associated with this platform - if(uppercaseFilename.indexOf((thisFileExtension.toUpperCase())) >= 0) { - - // set values ready to be injected into the HTML - var thisOfficialName = getOfficialName(thisPlatform); - var thisBinaryLink = (eachAsset.browser_download_url); - var thisBinarySize = Math.floor((eachAsset.size)/1024/1024); - var thisChecksumLink = (eachAsset.browser_download_url).replace(thisFileExtension, ".sha256.txt"); - - // prepare a fully-populated table row for this platform - platformTableRows += (""+ thisOfficialName +""+ thisFileExtension +" ("+ thisBinarySize +" MB)Checksum"); - } - } - }); - - // create a new table row containing all release information, and the completed platform/binary table - var newArchiveContent = ("

"+ thisReleaseName +"

"+ thisReleaseDate +"

"+ platformTableRows +"
Timestamp: "+ thisTimestamp +"
"); - - archiveTableBody.innerHTML += newArchiveContent; - - }); - - loading.innerHTML = ""; // remove the loading dots - - // show the archive list and filter box, with fade-in animation - var archiveList = document.getElementById('archive-list'); - var filterContainer = document.getElementById('filter-container'); - archiveList.className = archiveList.className.replace( /(?:^|\s)hide(?!\S)/g , ' animated fadeIn ' ); - filterContainer.className = filterContainer.className.replace( /(?:^|\s)hide(?!\S)/g , ' animated fadeIn ' ); - - // add a new entry to the platform filter drop-down list for each entry in the global 'platforms' array. - platforms.forEach(function(each) { - var op = new Option(); - op.value = each.searchableName; - op.text = each.officialName; - platformDropDown.options.add(op); - }); - - // when the user selects a new platform filter, run the filterByPlatform function, passing in the value of the selection. - platformDropDown.onchange = function(){ - filterByPlatform(this.value); - }; -} - -// create an array that contains all of the drop-down list options, including 'ALL'. -function buildDropdownArray() { - var dropdownArray = []; - for (i = 0; i < platformDropDown.options.length; i++) { - dropdownArray.push(platformDropDown.options[i].value); - } - return dropdownArray; -} - -// filters the platform rows and release rows based on a selected platform. -// pass in the 'searchableName' value of an object in the 'platforms' array, e.g. X64_LINUX -function filterByPlatform(selection) { - var dropdownArray = buildDropdownArray(); // get an array of the items in the dropdown platform selector - var index = dropdownArray.indexOf(selection); // find the index number of the selected platform in this array - dropdownArray.splice(index, 1); // remove this selected platform from the array - var notSelectedArray = dropdownArray; // create a new 'not selected' array (for clarity only) - - // if the first, default entry ('All', or equivalent) is selected... - if(index == 0){ - var thisPlatformRowArray = document.getElementsByClassName("platform-row"); // create an array containing all of the platform rows - for (i = 0; i < thisPlatformRowArray.length; i++) { - thisPlatformRowArray[i].className = thisPlatformRowArray[i].className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // un-hide all of these rows - } - - var releaseRows = archiveTableBody.getElementsByClassName("release-row"); // create an array containing all of the release rows - for (i = 0; i < releaseRows.length; i++) { - releaseRows[i].className = releaseRows[i].className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // un-hide all of these rows - } - } - // else, if a specific platform is selected... - else { - /* eslint-disable */ - var thisPlatformRowArray = document.getElementsByClassName(selection); // create an array containing all of the selected platform's rows - /* eslint-enable */ - for (i = 0; i < thisPlatformRowArray.length; i++) { - thisPlatformRowArray[i].className = thisPlatformRowArray[i].className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // make sure that these rows are not hidden - } - - notSelectedArray.splice(0, 1); // remove the first, default entry ('All', or equivalent) to leave just the platforms that have not been selected - - // for each of the non-selected platforms... - notSelectedArray.forEach(function(thisPlatform) { - /* eslint-disable */ - var thisPlatformRowArray = document.getElementsByClassName(thisPlatform); // create an array containing all of this platform's rows - /* eslint-enable */ - - for (i = 0; i < thisPlatformRowArray.length; i++) { - thisPlatformRowArray[i].className += " hide"; // hide all of the rows for this platform - } - }); - - /* eslint-disable */ - var releaseRows = archiveTableBody.getElementsByClassName("release-row"); // create an array containing all of the release rows - /* eslint-enable */ - - // for each of the release rows... - for (i = 0; i < releaseRows.length; i++) { - var platformBox = releaseRows[i].getElementsByTagName("TD")[1]; // get the second element in this row (the one that contains the platforms) - var numberOfPlatformRows = platformBox.getElementsByTagName("TR").length; // get the number of platform rows - var numberOfHiddenPlatformRows = platformBox.getElementsByClassName(" hide").length; // get the number of hidden platform rows - if(numberOfPlatformRows == numberOfHiddenPlatformRows) { // if ALL of the platform rows are hidden... - if(releaseRows[i].className.indexOf("hide") == -1){ // and if this release row isn't ALREADY hidden... - releaseRows[i].className += " hide"; // hide this release row - } - } - else { // else, if there is at least one visible platform row... - releaseRows[i].className = releaseRows[i].className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // make sure that this release row isn't hidden - } - } - - - } -} - -// set variables for all index page HTML elements that will be used by the JS -const dlText = document.getElementById('dl-text'); -const dlLatest = document.getElementById('dl-latest'); -const dlArchive = document.getElementById('dl-archive'); -const dlOther = document.getElementById('dl-other'); -const dlIcon = document.getElementById('dl-icon'); -const dlIcon2 = document.getElementById('dl-icon-2'); -const dlVersionText = document.getElementById('dl-version-text'); - -// When index page loads, run: -/* eslint-disable no-unused-vars */ -function onIndexLoad() { - setDownloadSection(); // on page load, populate the central download section. -} -/* eslint-enable no-unused-vars */ - -// INDEX PAGE FUNCTIONS - -function setDownloadSection() { - // call the XmlHttpRequest function in global.js, passing in 'releases' as the repo, and a long function as the callback. - loadReleasesJSON("releases", "latest_release", function(response) { - var releasesJson = JSON.parse(response); - - if (typeof releasesJson !== 'undefined') { // if there are releases... - buildHomepageHTML(releasesJson); - } - else { - // report an error - errorContainer.innerHTML = "

Error... no releases have been found!

"; - loading.innerHTML = ""; // remove the loading dots - } - }); -} - -function buildHomepageHTML(releasesJson) { - // set the download button's version number to the latest release - dlVersionText.innerHTML = releasesJson.tag_name; - - // create an array of the details for each binary that is attached to a release - var assetArray = []; - // create a new array that contains each 'asset' (binary) from the latest release: - releasesJson.assets.forEach(function(each) { - assetArray.push(each); - }); - - var OS = detectOS(); // set a variable as an object containing all information about the user's OS (from the global.js 'platforms' array) - var matchingBinary = null; - - // if the OS has been detected... - if(OS) { - assetArray.forEach(function(eachAsset) { // iterate through the assets attached to this release - var nameOfFile = eachAsset.name; - var uppercaseFilename = nameOfFile.toUpperCase(); - var thisPlatform = getSearchableName(uppercaseFilename); // get the searchableName, e.g. X64_MAC or X64_LINUX. - - // firstly, check if a valid searchableName has been returned (i.e. the platform is recognised)... - if(thisPlatform) { - - // secondly, check if the file has the expected file extension for that platform... - // (this filters out all non-binary attachments, e.g. SHA checksums - these contain the platform name, but are not binaries) - var thisFileExtension = getFileExt(thisPlatform); // get the file extension associated with this platform - if(uppercaseFilename.indexOf((thisFileExtension.toUpperCase())) >= 0) { - var uppercaseOSname = OS.searchableName.toUpperCase(); - - // thirdly, check if the user's OS searchableName string matches part of this binary's name (e.g. ...X64_LINUX...) - if(uppercaseFilename.indexOf(uppercaseOSname) >= 0) { - matchingBinary = eachAsset; // set the matchingBinary variable to the object containing this binary - } - } - } - }); - } - - // if there IS a matching binary for the user's OS... - if(matchingBinary) { - dlLatest.href = matchingBinary.browser_download_url; // set the main download button's link to be the binary's download url - dlText.innerHTML = ("Download for " + OS.officialName); // set the text to be OS-specific, using the full OS name. - var thisBinarySize = Math.floor((matchingBinary.size)/1024/1024); - dlVersionText.innerHTML += (" - " + thisBinarySize + " MB"); - } - // if there is NOT a matching binary for the user's OS... - else { - dlOther.className += " hide"; // hide the 'Other platforms' button - dlIcon.className += " hide"; // hide the download icon on the main button, to make it look less like you're going to get a download immediately - dlIcon2.className = dlIcon2.className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // un-hide an arrow-right icon to show instead - dlText.innerHTML = ("Downloads"); // change the text to be generic: 'Downloads'. - dlLatest.href = "./releases.html"; // set the main download button's link to the latest releases page for all platforms. - } - - // remove the loading dots, and make all buttons visible, with animated fade-in - loading.innerHTML = ""; - dlLatest.className = dlLatest.className.replace( /(?:^|\s)invisible(?!\S)/g , ' animated ' ); - dlOther.className = dlOther.className.replace( /(?:^|\s)invisible(?!\S)/g , ' animated ' ); - dlArchive.className = dlArchive.className.replace( /(?:^|\s)invisible(?!\S)/g , ' animated ' ); - - dlLatest.onclick = function() { - document.getElementById('installation-link').className += " animated pulse infinite transition-bright"; - }; - - // animate the main download button shortly after the initial animation has finished. - setTimeout(function(){ - dlLatest.className = "dl-button a-button animated pulse"; - }, 1000); -} - -// set variables for HTML elements -var tableHead = document.getElementById("table-head"); -var tableContainer = document.getElementById("nightly-list"); -var nightlyList = document.getElementById("nightly-table"); -var searchError = document.getElementById("search-error"); - -// When nightly page loads, run: -/* eslint-disable no-unused-vars */ -function onNightlyLoad() { - /* eslint-enable no-unused-vars */ - - populateNightly(); // run the function to populate the table on the Nightly page. - -} - - -// NIGHTLY PAGE FUNCTIONS - -function populateNightly() { - // call the XmlHttpRequest function in global.js, passing in 'nightly' as the repo, and a long function as the callback. - loadReleasesJSON("nightly", "nightly", function(response) { - function checkIfProduction(x) { // used by the array filter method below. - return x.prerelease === false && x.assets[0]; - } - - // Step 1: create a JSON from the XmlHttpRequest response - // Step 2: filter out all releases from this JSON that are marked as 'pre-release' in GitHub. - var releasesJson = JSON.parse(response).filter(checkIfProduction); - - // if there are releases... - if (typeof releasesJson[0] !== 'undefined') { - buildNightlyHTML(releasesJson); - } else { // if there are no releases... - // report an error - errorContainer.innerHTML = "

Error... no releases have been found!

"; - loading.innerHTML = ""; // remove the loading dots - } - - setSearchLogic(); - - }); -} - -function buildNightlyHTML(releasesJson) { - loading.innerHTML = ""; // remove the loading dots - - // for each release... - var tableRowCounter = 0; - - tableHead.innerHTML = ("ReleasePlatformDownloadsRelease details"); - - releasesJson.forEach(function(eachRelease) { - - // create an array of the details for each binary that is attached to a release - var assetArray = []; - eachRelease.assets.forEach(function(each) { - assetArray.push(each); - }); - - // build rows with the array of binaries... - assetArray.forEach(function(eachAsset) { // for each file attached to this release... - - var nameOfFile = (eachAsset.name); - var uppercaseFilename = nameOfFile.toUpperCase(); // make the name of the file uppercase - var thisPlatform = getSearchableName(uppercaseFilename); // get the searchableName, e.g. MAC or X64_LINUX. - - // firstly, check if the platform name is recognised... - if(thisPlatform) { - - // secondly, check if the file has the expected file extension for that platform... - // (this filters out all non-binary attachments, e.g. SHA checksums - these contain the platform name, but are not binaries) - var thisFileExtension = getFileExt(thisPlatform); // get the file extension associated with this platform - if(uppercaseFilename.indexOf((thisFileExtension.toUpperCase())) >= 0) { - - // get the current content of the nightly list div - var currentNightlyContent = nightlyList.innerHTML; - - // add an empty, hidden HTML template entry to the current nightly list, with the tableRowCounter suffixed to every ID - // to change the HTML of the nightly table rows/cells, you must change this template. - var newNightlyContent = currentNightlyContent += ("
|
|
Checksum
Timestamp:
"); - - // update the HTML container element with this new, blank, template row (hidden at this stage) - nightlyList.innerHTML = newNightlyContent; - - // set variables for HTML elements. - var dlButton = document.getElementById("nightly-dl"+tableRowCounter); - //var dlContent = document.getElementById("nightly-dl-content"+tableRowCounter); - - // populate this new row with the release information - var publishedAt = (eachRelease.published_at); - document.getElementById("nightly-release"+tableRowCounter).innerHTML = (eachRelease.name).slice(0, 12); // the release name, minus the timestamp - document.getElementById("nightly-release"+tableRowCounter).href = ("https://github.com/AdoptOpenJDK/openjdk-nightly/releases/tag/" + eachRelease.name) // the link to that release on GitHub - document.getElementById("nightly-date"+tableRowCounter).innerHTML = moment(publishedAt).format('Do MMMM YYYY'); // the timestamp converted into a readable date - //document.getElementById("nightly-changelog"+tableRowCounter).href = eachRelease.name; // TODO: WAITING FOR THE LINKS TO BE AVAILABLE. the link to the release changelog - document.getElementById("nightly-timestamp"+tableRowCounter).innerHTML = (eachRelease.name).slice(13, 25); // the timestamp section of the build name - //document.getElementById("nightly-buildnumber"+tableRowCounter).innerHTML = eachRelease.id; // TODO: currently this is the release ID - //document.getElementById("nightly-commitref"+tableRowCounter).innerHTML = eachRelease.name; // TODO: WAITING FOR THE INFO TO BE AVAILABLE. - //document.getElementById("nightly-commitref"+tableRowCounter).href = eachRelease.name; // TODO: WAITING FOR THE LINKS TO BE AVAILABLE. - - // get the official name, e.g. Linux x86-64, and display it in this new row - var officialName = getOfficialName(thisPlatform); - document.getElementById("platform-block"+tableRowCounter).innerHTML = officialName; - - // set the download section for this new row - dlButton.innerHTML = (thisFileExtension + " (" + (Math.floor((eachAsset.size)/1024/1024)) + " MB)"); // display the file type and the file size - document.getElementById("nightly-checksum"+tableRowCounter).href = (eachAsset.browser_download_url).replace(thisFileExtension, ".sha256.txt"); // set the checksum link (relies on the checksum having the same name as the binary, but .sha256.txt extension) - var link = (eachAsset.browser_download_url); - dlButton.href = link; // set the download link - - // show the new row, with animated fade-in - var trElement = document.getElementById(tableRowCounter); - trElement.className = trElement.className.replace( /(?:^|\s)hide(?!\S)/g , ' animated fadeIn ' ); - - tableRowCounter++; - } - } - }); - }); - - // if the table has a scroll bar, show text describing how to horizontally scroll - var scrollText = document.getElementById('scroll-text'); - var tableDisplayWidth = document.getElementById('nightly-list').clientWidth; - var tableScrollWidth = document.getElementById('nightly-list').scrollWidth; - if (tableDisplayWidth != tableScrollWidth) { - scrollText.className = scrollText.className.replace( /(?:^|\s)hide(?!\S)/g , '' ); - } -} - -function setSearchLogic() { - // logic for the realtime search box... - /* eslint-disable */ - var $rows = $('#nightly-table tr'); - $('#search').keyup(function() { - var val = '^(?=.*' + $.trim($(this).val()).split(/\s+/).join(')(?=.*') + ').*$', - reg = RegExp(val, 'i'), - text; - - $rows.show().filter(function() { - text = $(this).text().replace(/\s+/g, ' '); - return !reg.test(text); - }).hide(); - - if(document.getElementById('table-parent').offsetHeight < 45) { - tableContainer.style.visibility = "hidden"; - searchError.className = ""; - } else { - tableContainer.style.visibility = ""; - searchError.className = "hide"; - } - }); - /* eslint-enable */ -} - -// When releases page loads, run: -/* eslint-disable no-unused-vars */ -function onLatestLoad() { - /* eslint-enable no-unused-vars */ - populateLatest(); // populate the Latest page -} - -// LATEST PAGE FUNCTIONS - -function populateLatest() { - - // call the XmlHttpRequest function in global.js, passing in 'releases' as the repo, and a long function as the callback. - loadReleasesJSON("releases", "latest_release", function(response) { - var releasesJson = JSON.parse(response); - - if (typeof releasesJson !== 'undefined') { // if there are releases... - buildLatestHTML(releasesJson); - } - else { - // report an error - errorContainer.innerHTML = "

Error... no releases have been found!

"; - loading.innerHTML = ""; // remove the loading dots - } - }); -} - -function buildLatestHTML(releasesJson) { - // populate the page with the release's information - var publishedAt = (releasesJson.published_at); - document.getElementById("latest-build-name").innerHTML = releasesJson.name; - document.getElementById("latest-build-name").href = ("https://github.com/AdoptOpenJDK/openjdk-releases/releases/tag/" + releasesJson.name); - document.getElementById("latest-date").innerHTML = moment(publishedAt).format('Do MMMM YYYY'); - //document.getElementById("latest-changelog").href = releasesJson.name; - document.getElementById("latest-timestamp").innerHTML = (publishedAt.slice(0, 4) + publishedAt.slice(8, 10) + publishedAt.slice(5, 7) + publishedAt.slice(11, 13) + publishedAt.slice(14, 16)); - //document.getElementById("latest-buildnumber").innerHTML = releasesJson.id; - //document.getElementById("latest-commitref").innerHTML = releasesJson.name; - //document.getElementById("latest-commitref").href = releasesJson.name; - - // create an array of the details for each asset that is attached to a release - var assetArray = []; - releasesJson.assets.forEach(function(each) { - assetArray.push(each); - }); - - // for each asset attached to this release, check if it's a valid binary, then add a download block for it... - assetArray.forEach(function(eachAsset) { - var nameOfFile = (eachAsset.name); - var uppercaseFilename = nameOfFile.toUpperCase(); // make the name of the asset uppercase - var thisPlatform = getSearchableName(uppercaseFilename); // get the searchableName, e.g. MAC or X64_LINUX. - - // firstly, check if the platform name is recognised... - if(thisPlatform) { - - // secondly, check if the file has the expected file extension for that platform... - // (this filters out all non-binary attachments, e.g. SHA checksums - these contain the platform name, but are not binaries) - var thisFileExtension = getFileExt(thisPlatform); // get the file extension associated with this platform - if(uppercaseFilename.indexOf((thisFileExtension.toUpperCase())) >= 0) { - - // set values ready to be injected into the HTML - var thisLogo = getLogo(thisPlatform); - var thisOfficialName = getOfficialName(thisPlatform); - var thisBinaryLink = (eachAsset.browser_download_url); - var thisBinarySize = Math.floor((eachAsset.size)/1024/1024); - var thisChecksumLink = (eachAsset.browser_download_url).replace(thisFileExtension, ".sha256.txt"); - var thisRequirements = getRequirements(thisPlatform); - - // get the current content of the latest downloads container div - var latestContainer = document.getElementById("latest-downloads-container"); - var currentLatestContent = latestContainer.innerHTML; - - // prepare a fully-populated HTML block for this platform - var newLatestContent = currentLatestContent += ("
"+ thisOfficialName +"
Download
"+ thisFileExtension +" - "+ thisBinarySize +" MB

Checksum

Requirements:
"+ thisRequirements +"

"); - - // update the latest downloads container with this new platform block - latestContainer.innerHTML = newLatestContent; - } - } - }); - - loading.innerHTML = ""; // remove the loading dots - - const latestContainer = document.getElementById("latest-container"); - latestContainer.className = latestContainer.className.replace( /(?:^|\s)invisible(?!\S)/g , ' animated fadeIn ' ); // make this section visible (invisible by default), with animated fade-in -} diff --git a/dist/js/app.min.js b/dist/js/app.min.js deleted file mode 100644 index 6e9718cb..00000000 --- a/dist/js/app.min.js +++ /dev/null @@ -1 +0,0 @@ -function getSearchableName(e){var t=null;return platforms.forEach(function(a){e.indexOf(a.searchableName)>=0&&(t=a.searchableName)}),t?lookup[t].searchableName:null}function getOfficialName(e){return lookup[e].officialName}function getFileExt(e){return lookup[e].fileExtension}function getLogo(e){return logoPath+lookup[e].logo}function getRequirements(e){return lookup[e].requirements}function detectOS(){var e=null;return platforms.forEach(function(t){var a=t.osDetectionString.toUpperCase(),n=platform.os.family.toUpperCase();a.indexOf(n)>=0&&(e=t)}),e?e:null}function loadReleasesJSON(e,t,a){if(1==msieversion())loading.innerHTML="",document.getElementById("error-container").innerHTML="

Internet Explorer is not supported. Please use another browser, or see the releases list on GitHub.

";else{var n="https://raw.githubusercontent.com/AdoptOpenJDK/openjdk-"+e+"/master/"+t+".json",l=new XMLHttpRequest;l.overrideMimeType("application/json"),l.open("GET",n,!0),l.onreadystatechange=function(){4==l.readyState&&"200"==l.status?a(l.responseText):"200"!=l.status&&(loading.innerHTML="",document.getElementById("error-container").innerHTML="

Error... there's a problem fetching the releases. Please see the releases list on GitHub.

")},l.send(null)}}function msieversion(){return!!(window.navigator.userAgent.indexOf("MSIE ")>=0||navigator.userAgent.match(/Trident.*rv\:11\./))}function onArchiveLoad(){populateArchive()}function populateArchive(){loadReleasesJSON("releases","releases",function(e){function t(e){return e.prerelease===!1&&e.assets[0]}var a=JSON.parse(e).filter(t);void 0!==a[0]?buildArchiveHTML(a):(loading.innerHTML="",errorContainer.innerHTML="

There are no archived releases yet! See the Latest release page.

")})}function buildArchiveHTML(e){e.forEach(function(e){var t=e.published_at,a=e.name,n=moment(t).format("Do MMMM YYYY"),l="https://github.com/AdoptOpenJDK/openjdk-releases/releases/tag/"+a,i=t.slice(0,4)+t.slice(8,10)+t.slice(5,7)+t.slice(11,13)+t.slice(14,16),r="",s=[];e.assets.forEach(function(e){s.push(e)}),s.forEach(function(e){var t=e.name,a=t.toUpperCase(),n=getSearchableName(a);if(n){var l=getFileExt(n);if(a.indexOf(l.toUpperCase())>=0){r+=""+getOfficialName(n)+""+l+" ("+Math.floor(e.size/1024/1024)+" MB)Checksum"}}});var o="

"+a+"

"+n+"

"+r+"
Timestamp: "+i+"
";archiveTableBody.innerHTML+=o}),loading.innerHTML="";var t=document.getElementById("archive-list"),a=document.getElementById("filter-container");t.className=t.className.replace(/(?:^|\s)hide(?!\S)/g," animated fadeIn "),a.className=a.className.replace(/(?:^|\s)hide(?!\S)/g," animated fadeIn "),platforms.forEach(function(e){var t=new Option;t.value=e.searchableName,t.text=e.officialName,platformDropDown.options.add(t)}),platformDropDown.onchange=function(){filterByPlatform(this.value)}}function buildDropdownArray(){var e=[];for(i=0;iError... no releases have been found!

",loading.innerHTML="")})}function buildHomepageHTML(e){dlVersionText.innerHTML=e.tag_name;var t=[];e.assets.forEach(function(e){t.push(e)});var a=detectOS(),n=null;if(a&&t.forEach(function(e){var t=e.name,l=t.toUpperCase(),i=getSearchableName(l);if(i){var r=getFileExt(i);if(l.indexOf(r.toUpperCase())>=0){var s=a.searchableName.toUpperCase();l.indexOf(s)>=0&&(n=e)}}}),n){dlLatest.href=n.browser_download_url,dlText.innerHTML="Download for "+a.officialName;var l=Math.floor(n.size/1024/1024);dlVersionText.innerHTML+=" - "+l+" MB"}else dlOther.className+=" hide",dlIcon.className+=" hide",dlIcon2.className=dlIcon2.className.replace(/(?:^|\s)hide(?!\S)/g,""),dlText.innerHTML="Downloads",dlLatest.href="./releases.html";loading.innerHTML="",dlLatest.className=dlLatest.className.replace(/(?:^|\s)invisible(?!\S)/g," animated "),dlOther.className=dlOther.className.replace(/(?:^|\s)invisible(?!\S)/g," animated "),dlArchive.className=dlArchive.className.replace(/(?:^|\s)invisible(?!\S)/g," animated "),dlLatest.onclick=function(){document.getElementById("installation-link").className+=" animated pulse infinite transition-bright"},setTimeout(function(){dlLatest.className="dl-button a-button animated pulse"},1e3)}function onNightlyLoad(){populateNightly()}function populateNightly(){loadReleasesJSON("nightly","nightly",function(e){function t(e){return e.prerelease===!1&&e.assets[0]}var a=JSON.parse(e).filter(t);void 0!==a[0]?buildNightlyHTML(a):(errorContainer.innerHTML="

Error... no releases have been found!

",loading.innerHTML=""),setSearchLogic()})}function buildNightlyHTML(e){loading.innerHTML="";var t=0;tableHead.innerHTML="ReleasePlatformDownloadsRelease details",e.forEach(function(e){var a=[];e.assets.forEach(function(e){a.push(e)}),a.forEach(function(a){var n=a.name,l=n.toUpperCase(),i=getSearchableName(l);if(i){var r=getFileExt(i);if(l.indexOf(r.toUpperCase())>=0){var s=nightlyList.innerHTML,o=s+="
|
Timestamp:
";nightlyList.innerHTML=o;var d=document.getElementById("nightly-dl"+t),c=e.published_at;document.getElementById("nightly-release"+t).innerHTML=e.name.slice(0,12),document.getElementById("nightly-release"+t).href="https://github.com/AdoptOpenJDK/openjdk-nightly/releases/tag/"+e.name,document.getElementById("nightly-date"+t).innerHTML=moment(c).format("Do MMMM YYYY"),document.getElementById("nightly-timestamp"+t).innerHTML=e.name.slice(13,25);var m=getOfficialName(i);document.getElementById("platform-block"+t).innerHTML=m,d.innerHTML=r+" ("+Math.floor(a.size/1024/1024)+" MB)",document.getElementById("nightly-checksum"+t).href=a.browser_download_url.replace(r,".sha256.txt");var u=a.browser_download_url;d.href=u;var h=document.getElementById(t);h.className=h.className.replace(/(?:^|\s)hide(?!\S)/g," animated fadeIn "),t++}}})});var a=document.getElementById("scroll-text");document.getElementById("nightly-list").clientWidth!=document.getElementById("nightly-list").scrollWidth&&(a.className=a.className.replace(/(?:^|\s)hide(?!\S)/g,""))}function setSearchLogic(){var e=$("#nightly-table tr");$("#search").keyup(function(){var t,a="^(?=.*"+$.trim($(this).val()).split(/\s+/).join(")(?=.*")+").*$",n=RegExp(a,"i");e.show().filter(function(){return t=$(this).text().replace(/\s+/g," "),!n.test(t)}).hide(),document.getElementById("table-parent").offsetHeight<45?(tableContainer.style.visibility="hidden",searchError.className=""):(tableContainer.style.visibility="",searchError.className="hide")})}function onLatestLoad(){populateLatest()}function populateLatest(){loadReleasesJSON("releases","latest_release",function(e){var t=JSON.parse(e);void 0!==t?buildLatestHTML(t):(errorContainer.innerHTML="

Error... no releases have been found!

",loading.innerHTML="")})}function buildLatestHTML(e){var t=e.published_at;document.getElementById("latest-build-name").innerHTML=e.name,document.getElementById("latest-build-name").href="https://github.com/AdoptOpenJDK/openjdk-releases/releases/tag/"+e.name,document.getElementById("latest-date").innerHTML=moment(t).format("Do MMMM YYYY"),document.getElementById("latest-timestamp").innerHTML=t.slice(0,4)+t.slice(8,10)+t.slice(5,7)+t.slice(11,13)+t.slice(14,16);var a=[];e.assets.forEach(function(e){a.push(e)}),a.forEach(function(e){var t=e.name,a=t.toUpperCase(),n=getSearchableName(a);if(n){var l=getFileExt(n);if(a.indexOf(l.toUpperCase())>=0){var i=getLogo(n),r=getOfficialName(n),s=e.browser_download_url,o=Math.floor(e.size/1024/1024),d=e.browser_download_url.replace(l,".sha256.txt"),c=getRequirements(n),m=document.getElementById("latest-downloads-container"),u=m.innerHTML,h=u+="
"+r+"
Download
"+l+" - "+o+" MB

Checksum

Requirements:
"+c+"

";m.innerHTML=h}}}),loading.innerHTML="";const n=document.getElementById("latest-container");n.className=n.className.replace(/(?:^|\s)invisible(?!\S)/g," animated fadeIn ")}for(var platforms=[{officialName:"Linux x86-64",searchableName:"X64_LINUX",logo:"linux.png",fileExtension:".tar.gz",requirements:"GLIBC 2.5 and above",architecture:"64",osDetectionString:"Linux Mint Debian Fedora FreeBSD Gentoo Haiku Kubuntu OpenBSD Red Hat RHEL SuSE Ubuntu Xubuntu hpwOS webOS Tizen"},{officialName:"Linux s390x",searchableName:"S390X_LINUX",logo:"s390x.png",fileExtension:".tar.gz",requirements:"GLIBC 2.5 and above",architecture:"64",osDetectionString:"not-to-be-detected"},{officialName:"Linux ppc64le",searchableName:"PPC64LE_LINUX",logo:"ppc64le.png",fileExtension:".tar.gz",requirements:"GLIBC 2.5 and above",architecture:"64",osDetectionString:"not-to-be-detected"},{officialName:"macOS x86-64",searchableName:"X64_MAC",logo:"mac.png",fileExtension:".tar.gz",requirements:"macOS 10.8 and above",architecture:"64",osDetectionString:"Mac OS X OSX macOS Macintosh"}],lookup={},i=0,len=platforms.length;i - - - - - - - Get Involved - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
- -

Get involved

- -
-

I'm a Java / OpenJDK User

-

- We provide solidly made binaries to the highest quality possible utilising existing OpenJDK test suites - (via jtreg, jcov test coverage) and possibly other OSS donated test suites. However, these binaries are - not commercially supported. See Support for details. -

- -

Available Platforms

-

- We currently have Linux x64 and Mac OS X and are looking to rapidly add the other common Linux variants + Windows and - Solaris. We envisage some strong collaboration can form here with IcedTea and other - specific platform efforts! -

- -
- -
-

I'm an OpenJDK Developer

-

- We anticipate that this effort will lead to an easier way for OpenJDK developers to submit, review and test patches for - multiple platforms before submitting to the OpenJDK project. -

- -

Source Forests

-

- We've started with jdk8u (effectively Java 8) with test coverage from the open jtreg tests, providing jcov test coverage reports. - Later on other popular forests such as jdk9, jdk10, valhalla, shenandoah etc will be added. -

- -

- There may be some areas of overlap with other past/present efforts, but that's OK. We expect any duplication to - converge in due course and have started working with other platform specific OpenJDK build efforts. -

- -
- -
-

I'm an Adopt OpenJDK Developer

- -

- Discussions take place on the Mailing List, or via - the openjdk-build issues; and consensus recorded on this project website or the - appropriate GitHub repo (wiki) as appropriate: - -

-

-
- - - -
- - - - - - - - - diff --git a/index.html b/index.html deleted file mode 100644 index c35ab9d5..00000000 --- a/index.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
-

- Java™ is the world's leading programming language and platform. The code for Java is open source and available at - OpenJDK™. AdoptOpenJDK provides prebuilt OpenJDK binaries - from a fully open source set of build scripts and infrastructure. -

- - - -
- - - - -

Get involved 

-
- -
- -
- - - - - - - - - diff --git a/installation.html b/installation.html deleted file mode 100644 index 32c1c259..00000000 --- a/installation.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - - - Installation - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
- -

Installation

- - - -
-
-

Linux and macOS installation

-
    -
  1. Download the latest tar.gz from the Latest release page to a directory that will not move or be deleted.
  2. -
  3. - Using Terminal, navigate to the location of this tar.gz: -
    cd <path/to/your/directory>
    -
  4. -
  5. - Extract the tar.gz. You can use the following command: -
    tar -xf <filename>.tar.gz
    -
  6. -
  7. - Add this version of Java to your PATH: -
    export PATH=$PWD/j2sdk-image/bin:$PATH
    -
  8. -
  9. - Check that it has installed correctly: -
    java -version
    -
  10. -
-
- -
-

Windows installation

-
    -
  1. Download the latest .zip from the Latest release page to a directory that will not move or be deleted.
  2. -
  3. - Using the command prompt, navigate to the location of this .zip: -
    cd <path\to\your\directory>
    -
  4. -
  5. - Extract the .zip. You can use the following command: -
    unzip <filename>.zip
    -
  6. -
  7. - Add this version of Java to your PATH: -
    set PATH=%cd%\j2sdk-image\bin;%PATH%
    -
  8. -
  9. - Check that it has installed correctly: -
    java -version
    -
  10. -
-
- -
- -
- - - - - - - - - diff --git a/nightly.html b/nightly.html deleted file mode 100644 index f60ceb00..00000000 --- a/nightly.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - - Nightly builds - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
-
- -

Nightly builds

- - -
- See the latest release - -
-
- - -
- Release archive - -
-
- -

Scroll horizontally to see all information

- - -
No search results
- -
- -
- - - - - - - -
-
- -
- - - - - - - - - diff --git a/releases.html b/releases.html deleted file mode 100644 index 0096f2ae..00000000 --- a/releases.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - Latest release - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
- -
-

Latest release:

-
- - - -
- -
- -
- - - - - - - - - diff --git a/sponsors.html b/sponsors.html deleted file mode 100644 index b5a923d3..00000000 --- a/sponsors.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - - - Sponsors - AdoptOpenJDK - - - - - - - - - - - - - -
- - -
- -

Sponsors

- - - -
- - - - - - - - - diff --git a/support.html b/support.html deleted file mode 100644 index b06d2650..00000000 --- a/support.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - Support - AdoptOpenJDK - - - - - - - - - - - - - -
- - - -
- -

Support

- -
-
-

Quality

-

- The binaries that AdoptOpenJDK produces have passed the full OpenJDK test suite and other tests (donated by the community) - ensuring a good quality binary. However, they are not JCK/TCK compliant. If you want a formally (JCK/TCK) - tested and verified Java binary then you can get one from a commercial vendor. -

-
- -
-

Community Support

-

- The OpenJDK community does not offer any commercial support for the binaries produced. If you do have questions, comments, want to report a bug or - wish to contribute then choose from one of the options below (please post on the mailing list to get access to Slack): -

-
- - -
- -
- - - - - - - - -