Cons, too! I showed the gallery to my friends - instead of looking at my works (and praising the author!;)), They took up the gallery itself, playing with its mobile blocks!
Bogdan mylove
Do you like static pictures from the 90s, flat images and standard solutions? This script is not for you!
Trying to get four chicks to go on; Oh yeah, turn the chair upside down. CROOKED I
The developers of many browsers stubbornly prevent advertising from reaching a new level and do not provide the ability to open a browser window to full screen without any permission from the user. It is their fault that you have to invent solutions for genius similar to the ideas of CROOKED I. One of these solutions is to meet the site visitor with a seductive and elegant button, the smooth animation of which makes you think about eternity. The public part of the project is visualized by a projection on three main pages: an informational text, a list of photos and a list of albums. Each page has its own location in the volume field, so that the planes of the first and third pages are parallel to each other, and both of them are perpendicular to the plane of the second page, and together they represent exactly half of the imaginary cube. Those. From these two sets of pages, you can create a shape similar to a regular hexahedron. The main project template has the following document markup structure:
In the gallery itself creates the illusion of the location of photos at different distances from the viewer. Happy users of the Google Chrome browser can observe a dynamic change of this distance over time. Thanks to the proximity-event plugin, when the cursor approaches the desired photo, it gradually comes to the fore, gets rid of transparency and slightly increases in size, this effect was developed based on the lesson thumbnail proximity effect with jQuery with the addition of volumetric transformation.
When viewing a single photo, the default is the scroll image mode developed by Manoela Ilic using the jQuery plugin thumbnail scroller . There is also a static mode. And for each mode, images are loaded with a resolution that does not allow the browser to resize the image with its own means, which ensures maximum display quality, minimal dependence on third-party software, and generally antique with a pink! Do not get bored while downloading images will help neteye activity indicator . Due to security reasons, the end user is not given direct access not only to the image, but even to information about the location of the image, so the file name on the server during public manipulations is encrypted using the php-cypher library. Since the image manipulations are performed using the TimThumb library, it is possible to overlay various filters on the photo, for example. And yes, thanks to the anchors, you can always throw a link to your favorite photo friends.
Most of the browsing control buttons are made using fontello web font icons , as everyone knows how tedious to draw image sprites, it’s much more convenient to use ready-made font with icons, and this service helps weed out trash to lighten the weight of the generated font. The functionality of switching to the next or previous photo appears only when necessary, in the normal state it is hidden and does not interfere with enjoyment.
To reduce energy consumption, by reducing the number of gestures in the development of the project, the most popular (according to the results of research conducted by its developers) front-end template - HTML5 Boilerplate was used . This HTML / CSS / JS template contains pages adapted for different screens, optimized Google Analytics code, Normalize.css and other cascading style sheet helpers, as well as the jQuery and Modernizr libraries. This template was successfully used by Google , Microsoft and Barack Obama .
You are like Obama's worms — you live in a barrack. Oxxxymiron
For the server side of the application, a little-known framework, modestly named di, was chosen. In this software, the (H) MVC pattern is implemented in the classical form: Those. any request from the user will be redirected to the Model through the dispatcher, it will in turn analyze and process it, prepare the system for operation and transfer control to the required controller. Which, in turn, interprets the data and gives it to the user through the presentation. If necessary, the controller can also change the state of the Model. Based on the above, the system uses the following file architecture:
controller (place for controllers)
Controller.php (default controller)
model (heart of the project)
core (place for classes and libraries)
data (settings files)
include (space for third-party libraries)
index.php (file that will handle user requests)
view (place to store templates for presentation)
.htaccess (plays the role of manager)
A convenient feature of this software is the ease of creating controllers, for example, you can create a file "echoController.php", with the following content:
<? php
class echoController Extends Base {
function index ( ) {
echo 'Hello World!' ;
}
function action ( ) {
echo 'I \' m action ! ';
}
}
?>
Then drop this file into the folder “controller” and you can enjoy the work done. Now if you go to site.com/echo/, the message “Hello World!” Will be displayed, and if you go to site.com/echo/action/, you will see “I'm action!”.
Also, thanks to the use of the singleton pattern in conjunction with the php5 buns , it is possible to completely abandon the use of global variables, all the necessary data are available from anywhere in the script. For example, to display a page through the built-in smarty template engine, it suffices to write:
Any of the three lines will display the “index.tpl” template, located in the “view” folder. In other words, if in the future thirsty pilgrims will have an overwhelming desire to expand the functionality of this system, this should not be a problematic act.
The login form to the control panel, as well as the entire control panel, is designed in a minimalist style using a set of cascading style sheets Metro UI CSS . At the very top of the page there is a button to return to the gallery and the inscription with a greeting. If suddenly the user is in the enemy's camp, where every homunculus strives to throw his eyes over the unfortunate one with shaking hands, then of course it would be wise not to give the password to the public. But if a user tries to break into the control panel while being in a greenhouse, carefully guarded by his mother and grandmother, then it would be logical to assume that it is more convenient to remove the shackles of asterisks from the password entered. The function of switching the visibility of the entered characters is performed by the helper, which appears at the moment when the password entry field catches the focus. The helper in the phone number entry field deletes the entered data. Checking the correctness of the entered number is done using the PhoneCodes library , thanks to which it is possible to filter users by country code. By default, phone numbers with the following country codes are accepted: 7, 375, 380. You can expand this range by editing the file “model / core / class.user.php”, adding the necessary codes in the fourth line.
For people who can make a mistake three times when entering their data, an additional opportunity of the project, namely the input of characters checking humanity, opens up.
Immediately after a successful login to the control panel, a list of all galleries and the ability to create a new one appears. To change the display order of the galleries, use the mouse to capture the line, drag it to the desired position and abandon it to its fate. For the execution of the insidious plan to remove the gallery, it is necessary to confirm the plan of their actions, which practically minimizes the possibility of accidentally erasing important information. After selecting a separate gallery, you can add new photos to it and delete existing ones. Simultaneous loading of multiple files, “drag-and-drop” technology, download indicator, preview and on-the-fly optimization are implemented using the jQuery File Upload library.
Put your hands down bitch, I ain't goin 'shoot you I’m putting you in there. Eminem
And finally, so without fear and risk of being strained by a bullet to issue this project for your creation, you must remove the copyright information, for this you need to change the text in the WYSIHTML5 editor, which offers a fairly user-friendly interface, on the description edit page. If suddenly there is not enough space on the verge of the cube with the description to display all the text, then a scroll bar will appear, implemented using the jQuery vertical scroller plugin . The same goes for the face with the list of galleries.
Due to non-standard rendering on computers with outdated video cards, there is a slowdown. This fact artel with the idea that not all browsers fully and correctly support the capabilities of the cascading style sheets of the third level, was fundamental in creating a mobile version of the project.