Coder Social home page Coder Social logo

manti-by / manti.by Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 192.76 MB

Blog engine using Rocket framework for music and photo publishing.

Home Page: https://manti.by

License: BSD 3-Clause "New" or "Revised" License

CSS 20.88% JavaScript 11.67% HTML 23.51% Python 43.19% Makefile 0.42% Dockerfile 0.33%
django postgres python

manti.by's People

Contributors

manti-by avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

manti.by's Issues

Missing HTTP security headers

X-XSS-Protection - Mitigates Cross-Site Scripting (XSS) attacks
Strict-Transport-Security - Protects against man-in-the-middle attacks
X-Content-Type-Options - Prevents possible phishing or XSS attacks

Improve all links and images

Disable TLS 1.0 and check DNS CAA

TLS_RSA_WITH_AES_256_GCM_SHA384 (0x9d)   WEAK | 256
TLS_RSA_WITH_AES_256_CCM_8 (0xc0a1)   WEAK | 256
TLS_RSA_WITH_AES_256_CCM (0xc09d)   WEAK | 256
TLS_RSA_WITH_AES_128_GCM_SHA256 (0x9c)   WEAK | 128
TLS_RSA_WITH_AES_128_CCM_8 (0xc0a0)   WEAK | 128
TLS_RSA_WITH_AES_128_CCM (0xc09c)   WEAK | 128
TLS_RSA_WITH_AES_256_CBC_SHA256 (0x3d)   WEAK | 256
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 (0xc0)   WEAK | 256
TLS_RSA_WITH_AES_128_CBC_SHA256 (0x3c)   WEAK | 128
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 (0xba)   WEAK | 128
TLS_RSA_WITH_AES_256_CBC_SHA (0x35)   WEAK | 256
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA (0x84)   WEAK | 256
TLS_RSA_WITH_AES_128_CBC_SHA (0x2f)   WEAK | 128
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA (0x41)   WEAK | 128

Implement lazy loading for images

The src attribute of the img tag is replaced with a data-src attribute in the markup:

<img data-src="image.jpg" alt="test image">

In the CSS, img elements with a data-src attribute are hidden. Once loaded, images will appear with a nice fade-in effect using CSS transitions:

img {
  opacity: 1;
  transition: opacity 0.3s;
}

img[data-src] {
  opacity: 0;
}

JavaScript then adds the src attribute to each img element and gives it the value of their respective data-src attributes. Once images have finished loading, the script removes the data-src attribute from img elements altogether:

[].forEach.call(document.querySelectorAll('img[data-src]'),    function(img) {
  img.setAttribute('src', img.getAttribute('data-src'));
  img.onload = function() {
    img.removeAttribute('data-src');
  };
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.