:: webcam_images[widget]
<<widget 'webcamImage'>>
	<<set _insertedImage = _args[0]>>
	<<set _webcamImageCounter = (_webcamImageCounter ?? 0) + 1>>
	<<set _divId = 'website_'+_webcamImageCounter>>
	<div @id="_divId">
		<svg viewBox="0 0 100 60">
			<rect width="100" fill="#5e0000" height="60"></rect>
			<image class="image" href="" height="6" x="2" y="1"></image>
			<text class="title" style="font-size: 4px;font-family: initial;" y="6" x="7">моякамера.ru</text>

			<rect fill="#fff" height="51" width="98" y="8" x="1" rx="2"></rect>

			<mask id="window">
				<rect fill="#fff" height="51" width="98" y="8" x="1" rx="2"></rect>
			</mask>

			<image class="website" href="" x="2" height="49" y="9" mask="url(#window)" /></image>
		</svg>
	</div>

	<<capture _divId, _insertedImage>>
		<<done>>
			<<run $("#"+_divId+" .image").attr("href",$media_path+"pc/activities/camwhore/headerGirl.webp")>>
			<<run $("#"+_divId+" .website").attr("href",$media_path+_insertedImage)>>
		<</done>>
	<</capture>>
<</widget>>