浏览代码

changes to enable font changes

main
Simon Bowie 2 年前
父节点
当前提交
3da92c76ed
共有 11 个文件被更改,包括 28 次插入10 次删除
  1. +5
    -0
      nginx-conf/patent_site.conf
  2. +1
    -1
      site/public/abstracts.php
  3. +3
    -3
      site/public/compare.php
  4. 二进制
      site/public/css/fonts/RubikMoonrocks-Regular.ttf
  5. +13
    -0
      site/public/css/style.css
  6. +1
    -1
      site/public/id_search.php
  7. +1
    -1
      site/public/index.php
  8. +1
    -1
      site/public/random.php
  9. +1
    -1
      site/public/random_images.php
  10. +1
    -1
      site/public/search.php
  11. +1
    -1
      site/public/titles.php

+ 5
- 0
nginx-conf/patent_site.conf 查看文件

@@ -16,5 +16,10 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}

location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
expires max;
}
}

+ 1
- 1
site/public/abstracts.php 查看文件

@@ -19,9 +19,9 @@ $random_abstracts = ten_random_abstracts($core);
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


+ 3
- 3
site/public/compare.php 查看文件

@@ -14,9 +14,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script>
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
@@ -27,11 +27,11 @@
<div class="container-fluid">
<div class="row">
<div class="col text-center">
<iframe src="./random.php" frameborder="0" scrolling="no" onload="resizeIframe(this)"> </iframe>
<iframe class="compare_frame" src="./random.php" frameborder="0" scrolling="no" onload="resizeIframe(this)"> </iframe>
</div>

<div class="col text-center">
<iframe src="./random.php" frameborder="0" scrolling="no" onload="resizeIframe(this)"></iframe>
<iframe class="compare_frame" src="./random.php" frameborder="0" scrolling="no" onload="resizeIframe(this)"></iframe>
</div>
</div>
</div>

二进制
site/public/css/fonts/RubikMoonrocks-Regular.ttf 查看文件


+ 13
- 0
site/public/css/style.css 查看文件

@@ -1,3 +1,12 @@
@font-face {
font-family: 'Rubik Moonrocks';
src: url('fonts/RubikMoonrocks-Regular.ttf');
}

body {
font-family: 'Rubik Moonrocks';
}

.btn-link {
border: none;
outline: none;
@@ -15,3 +24,7 @@
word-wrap: break-word;
white-space:pre-wrap;
}

iframe.compare_frame {
width: 50%;
}

+ 1
- 1
site/public/id_search.php 查看文件

@@ -17,9 +17,9 @@ include '../ops_api.php'
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


+ 1
- 1
site/public/index.php 查看文件

@@ -18,9 +18,9 @@ $cores = array("active", "expanding", "invisible", "multispecies", "pissing", "s
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body class="d-flex flex-column min-vh-100">


+ 1
- 1
site/public/random.php 查看文件

@@ -21,9 +21,9 @@ $publication_details = get_publication_details($random_record['doc_ref']);
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


+ 1
- 1
site/public/random_images.php 查看文件

@@ -20,9 +20,9 @@ $random_doc_refs = ten_random_doc_refs($core);
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


+ 1
- 1
site/public/search.php 查看文件

@@ -16,9 +16,9 @@ include '../solr.php';
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


+ 1
- 1
site/public/titles.php 查看文件

@@ -19,9 +19,9 @@ $random_titles = ten_random_titles($core);
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


正在加载...
取消
保存