<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.cursedlands.cc/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cursedlands.cc/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.cursedlands.cc/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-09-17T04:14:38Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.cursedlands.cc/index.php?title=MediaWiki:Common.js&amp;diff=547&amp;oldid=prev</id>
		<title>Admin: preload=metadata — показывать длительность (воспроизведение по-прежнему только по кнопке)</title>
		<link rel="alternate" type="text/html" href="https://wiki.cursedlands.cc/index.php?title=MediaWiki:Common.js&amp;diff=547&amp;oldid=prev"/>
		<updated>2026-07-20T19:36:07Z</updated>

		<summary type="html">&lt;p&gt;preload=metadata — показывать длительность (воспроизведение по-прежнему только по кнопке)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 19:36, 20 июля 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Строка 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * а если JavaScript отключён — посетитель просто увидит рабочую ссылку.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * а если JavaScript отключён — посетитель просто увидит рабочую ссылку.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Трек НИКОГДА не запускается сам: без autoplay и с preload=&amp;quot;none&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Трек НИКОГДА не запускается сам: без autoplay и с preload=&amp;quot;none&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;то есть файл даже не начнёт качаться&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;пока &lt;/del&gt;не &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;нажали «play»&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;а preload=&quot;metadata&quot; тянет только заголовок файла (длительность)&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;а &lt;/ins&gt;не &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;сам трек&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  */&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$( function () {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$( function () {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Строка 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.controls = true;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.controls = true;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.autoplay = false;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.autoplay = false;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.preload = &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;none&lt;/del&gt;&#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.preload = &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;metadata&lt;/ins&gt;&#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.src = src;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.src = src;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.className = &amp;#039;cl-audio-el&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		audio.className = &amp;#039;cl-audio-el&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.cursedlands.cc/index.php?title=MediaWiki:Common.js&amp;diff=543&amp;oldid=prev</id>
		<title>Admin: Веб-проигрыватель .cl-audio (без автозапуска)</title>
		<link rel="alternate" type="text/html" href="https://wiki.cursedlands.cc/index.php?title=MediaWiki:Common.js&amp;diff=543&amp;oldid=prev"/>
		<updated>2026-07-20T19:34:03Z</updated>

		<summary type="html">&lt;p&gt;Веб-проигрыватель .cl-audio (без автозапуска)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Веб-проигрыватель для аудио на страницах вики.&lt;br /&gt;
 *&lt;br /&gt;
 * Использование в викитексте:&lt;br /&gt;
 *   &amp;lt;div class=&amp;quot;cl-audio&amp;quot; data-title=&amp;quot;Название&amp;quot; data-artist=&amp;quot;Исполнитель&amp;quot;&amp;gt;&lt;br /&gt;
 *   [[Media:Файл.mp3|Слушать трек]]&amp;lt;/div&amp;gt;&lt;br /&gt;
 *&lt;br /&gt;
 * Ссылка [[Media:...]] нужна обязательно: скрипт берёт из неё адрес файла,&lt;br /&gt;
 * а если JavaScript отключён — посетитель просто увидит рабочую ссылку.&lt;br /&gt;
 * Трек НИКОГДА не запускается сам: без autoplay и с preload=&amp;quot;none&amp;quot;,&lt;br /&gt;
 * то есть файл даже не начнёт качаться, пока не нажали «play».&lt;br /&gt;
 */&lt;br /&gt;
$( function () {&lt;br /&gt;
	$( &amp;#039;.cl-audio&amp;#039; ).each( function () {&lt;br /&gt;
		var $box = $( this );&lt;br /&gt;
		if ( $box.hasClass( &amp;#039;cl-audio-ready&amp;#039; ) ) {&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
		var $link = $box.find( &amp;#039;a&amp;#039; ).first();&lt;br /&gt;
		var src = $box.attr( &amp;#039;data-src&amp;#039; ) || ( $link.length ? $link.attr( &amp;#039;href&amp;#039; ) : &amp;#039;&amp;#039; );&lt;br /&gt;
		if ( !src ) {&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
		var title = $box.attr( &amp;#039;data-title&amp;#039; ) || ( $link.length ? $link.text() : &amp;#039;Аудиозапись&amp;#039; );&lt;br /&gt;
		var artist = $box.attr( &amp;#039;data-artist&amp;#039; ) || &amp;#039;&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
		var audio = document.createElement( &amp;#039;audio&amp;#039; );&lt;br /&gt;
		audio.controls = true;&lt;br /&gt;
		audio.autoplay = false;&lt;br /&gt;
		audio.preload = &amp;#039;none&amp;#039;;&lt;br /&gt;
		audio.src = src;&lt;br /&gt;
		audio.className = &amp;#039;cl-audio-el&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
		var $head = $( &amp;#039;&amp;lt;div&amp;gt;&amp;#039; ).addClass( &amp;#039;cl-audio-head&amp;#039; )&lt;br /&gt;
			.append( $( &amp;#039;&amp;lt;span&amp;gt;&amp;#039; ).addClass( &amp;#039;cl-audio-title&amp;#039; ).text( title ) );&lt;br /&gt;
		if ( artist ) {&lt;br /&gt;
			$head.append( $( &amp;#039;&amp;lt;span&amp;gt;&amp;#039; ).addClass( &amp;#039;cl-audio-artist&amp;#039; ).text( artist ) );&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		$box.empty()&lt;br /&gt;
			.addClass( &amp;#039;cl-audio-ready&amp;#039; )&lt;br /&gt;
			.append( $( &amp;#039;&amp;lt;span&amp;gt;&amp;#039; ).addClass( &amp;#039;cl-audio-ico&amp;#039; ).text( &amp;#039;♪&amp;#039; ) )&lt;br /&gt;
			.append(&lt;br /&gt;
				$( &amp;#039;&amp;lt;div&amp;gt;&amp;#039; ).addClass( &amp;#039;cl-audio-meta&amp;#039; )&lt;br /&gt;
					.append( $head )&lt;br /&gt;
					.append( audio )&lt;br /&gt;
			);&lt;br /&gt;
	} );&lt;br /&gt;
} );&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>