compton 21a556d1cc Update styles of picture section 6 months ago
..
.htaccess c8bf05ba50 Fix pictures section with using gogs api 6 months ago
README.md 21a556d1cc Update styles of picture section 6 months ago
commonfoos.php c8bf05ba50 Fix pictures section with using gogs api 6 months ago
index.php 21a556d1cc Update styles of picture section 6 months ago
init.php c8bf05ba50 Fix pictures section with using gogs api 6 months ago
main.css 21a556d1cc Update styles of picture section 6 months ago
summary.php 21a556d1cc Update styles of picture section 6 months ago

README.md

Здесь лежит исходный код для страниц с изображениями cmd.inp.nsk.su/~compton/pictures

  • index.php — стартовая страница
  • init.php — страница с детальной (интерактивной) информацией о конкретной энергетической точке
  • summary.php — страница с информацией в целом о сезоне
  • commonfoos.php — набор используемых php-функций, который подгружается на других страницах
  • main.css — стили css для сайта

Развёртывание раздела pictures

  1. получить данные из этого репозитория

    mkdir pictures
    cd pictures
    git init 
    git remote add -f origin <this-repo-link>
    git sparse-checkout set "src/page"
    git pull origin master
    
  2. прописать в корневом .htaccess проксирование: pictures/*pictures/src/page/*

  3. в папку src/page добавить конфигурационный файл config.ini с таким содержанием (apitoken можно получить в настройках профиля в gogs)

    [gogs]
    apitoken = "xxxxxx"
    
  4. скачать plotly-latest.min.js и fmin.min.js и положить в папку src/page

Полезные ссылки по отображению графиков в js