PageSourceSearch

https://vltk.ru/design/VLKT_6/js/init_colorbox.js

js vltk.ru collected 2026-10-07 23:50:56 UTC 1,630 bytes, 45 lines download raw bytes

1$(function() {
2
3// internationalization
4$.extend($.colorbox.settings, {
5current: LANG_CBOX_IMAGE + " {current} " + LANG_CBOX_FROM + " {total}",
6previous: LANG_CBOX_PREVIOUS,
7next: LANG_CBOX_NEXT,
8close: LANG_CBOX_CLOSE,
9xhrError: LANG_CBOX_XHR_ERROR,
10slideshowStop: LANG_CBOX_SLIDESHOWSTOP,
11slideshowStart: LANG_CBOX_SLIDESHOWSTART,
12imgError: LANG_CBOX_IMG_ERROR
13});
14
15//подхватываем от lightbox
16$( '.lightbox-enabled' ).colorbox({ transition: "none"});
17
18//статьи анонсы и основной текст
19$( '.text-block img, .con_desc img' ).not('a img:first-child').wrap( function(){
20	var ahref = $( '<a href="' + $( this ).attr( 'src' ) + '" />').colorbox({ transition: "none" });
21	return ahref;
22});
23//добавление класса вручную в шаблоне
24$('a.photobox').colorbox({ rel: 'gal', transition: "none", slideshow: true, width: "90%", height: "auto" });
25
26$( '.bd_image_small' ).each( function(){
27	var regex = /(small\/|medium\/)/;
28	var link = $( this ).attr( 'src' );
29    $( this ).wrap( '<a class="orig" href="' + link.replace( regex, 'medium/' ) + '" />' );
30    $( '.orig').colorbox({ transition: "none" });
31});
32
33//для вставленых через бб-редактор
34$( '.bb_img img' ).not('a img:first-child').each( function(){
35	var link = $( this ).attr( 'src' );
36    $( this ).wrap( '<a class="bb_photo" href="' + link + '" />' );
37    $( '.bb_photo').colorbox({ transition: "none" });
38});
39
40//для бб-редактора вставленные с уменьшением
41$( '.forum_zoom a' ).each( function(){
42    $( this ).colorbox({ transition: "none" });
43});
44
45});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.