var $el, $ps, $up, totalHeight;
window.onload = function(){
$("pre").wrap("<div></div>");
$("article").wrap('<div style="overflow:auto"></div>');
};
$(".sidebar-box .button").click(function() {
$p = $(this).parent();
$up = $p.parent();
$up.css({"display":"table"});
$up.children('*').css({"display":"table-row"});
// fade out read-more
$p.fadeOut();
// prevent jump-down
return false;
});
body {
font-size: 16px!important;
}
@media screen and (min-width: 600px) {
body {
font-size: calc(16px + (100vw - 600px) / 600)!important;
}
}
@media screen and (min-width: 1200px) {
body {
font-size: 18px!important;
}
}
h1 {
font-size: 32px!important;
}
@media screen and (min-width: 600px) {
h1 {
font-size: calc(32px + 4 * (100vw - 600px) / 600)!important;
}
}
@media screen and (min-width: 1200px) {
h1 {
font-size: 36px!important;
}
}
h2 {
font-size: 24px!important;
}
@media screen and (min-width: 600px) {
h2 {
font-size: calc(24px + 4 * (100vw - 600px) / 600)!important;
}
}
@media screen and (min-width: 1200px) {
h2 {
font-size: 28px!important;
}
}
h3 {
font-size: 18px!important;
}
@media screen and (min-width: 600px) {
h3 {
font-size: calc(18px + 4 * (100vw - 600px) / 600)!important;
}
}
@media screen and (min-width: 1200px) {
h3 {
font-size: 22px!important;
}
}
h4 {
font-size: 15px!important;
}
@media screen and (min-width: 600px) {
h4 {
font-size: calc(15px + 4 * (100vw - 600px) / 600)!important;
}
}
@media screen and (min-width: 1200px) {
h4 {
font-size: 19px!important;
}
}
html, body {
height: 100%!important;
}
.main-style{
min-height: 100%;
height: auto !important;
height: 100%;
max-width:800px;
margin-left: auto;
margin-right: auto;
margin-bottom: -130px;
/* the bottom margin is the negative value of the footer's height */
}
.sidebar-box {
max-height: 300px;
position: relative;
overflow: hidden;
}
.sidebar-box .read-more {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
margin: 0; padding: 30px 0;
/* "transparent" only works here because == rgba(0,0,0,0) */
background-image: linear-gradient(to bottom, transparent, black);
/*
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, rgba(255, 0, 0, 0)),
color-stop(1, rgba(255, 0, 0, 100)));
*/
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<main class="main-style">
<article class="sidebar-box">
<h1>âTADOConnectionâ â ÐÑпÑаван наÑин да Ñе коÑиÑÑи âLoginPrompt := trueâ</h1>
<p>
ÐиÑам до Ñада никако ÑазÑмео ÑÑа "LoginPrompt := true" ÑопÑÑе Ñади.
Ðли Ñада знам да Ñе иÑпÑаван наÑин да Ñе коÑиÑÑи ÑледеÑи:
</p>
<pre>procedure TfrmMain.FormShow(Sender: TObject);
var
i: integer;
begin
con1.Provider := 'SQLOLEDB.1';
con1.Properties['Application Name'].Value := Application.Title;
with TIniFile.Create(ExtractFileDir(ParamStr(0)) + '\setup.ini') do
begin
con1.Properties['Initial Catalog'].Value := ReadString('database', 'Initial Catalog', '');
con1.Properties['Ddata Source'].Value := ReadString('database', 'Data Source', '');
if ReadBool('database', 'Integrated Security', false ) then
begin
con1.Properties['Integrated Security'].Value := 'SSPI';
con1.Properties['Persist Security Info'].Value := 'False';
con1.LoginPrompt := False;
end
else
begin
con1.Properties['Persist Security Info'].Value := 'True';
con1.LoginPrompt := true;
end;
end;
end;
procedure TfrmMain.con1Login(Sender: TObject; Username, Password: string);
begin
con1.Properties['User ID'].Value := Username;
con1.Properties['Password'].Value := Password;
end;
</pre>
<p>
ÐÐ²Ð°Ñ ÐºÐ¾Ð´ ÑиÑа нека обележÑа поÑÑебна за обÑÐµÐºÐ°Ñ ÐºÐ¾Ð½ÐµÐºÑиÑе из ÐÐРдаÑоÑеке. Ðнда, на оÑÐ½Ð¾Ð²Ñ Ð²ÑедноÑÑи "Integrated Security" обележÑа коÑе налази Ñ ÑаÑÐ»Ñ Ð¾Ð´Ð»ÑÑÑÑе да ли Ñе да коÑиÑÑи ÑгÑаÑÐµÐ½Ñ Ð±ÐµÐ·Ð±ÐµÐ´Ð½Ð¾ÑÑ (виндовÑ) или ÑикÑÑел ÑеÑÐ²ÐµÑ Ð±ÐµÐ·Ð±ÐµÐ´Ð½Ð¾ÑÑ. Ðко коÑиÑÑи ÑикÑÑел ÑеÑÐ²ÐµÑ Ð±ÐµÑбедноÑÑ Ð¾Ð½Ð´Ð° Ñе ÐнÐогон догаÑÐ°Ñ Ð±Ð¸Ñи позван након позива ÑÑкÑиÑе Ðпен над конекÑиÑом. Ðли мало пÑе Ñога Ñе коÑиÑник добиÑи на екÑÐ°Ð½Ñ Ð¾Ð±ÑÐ°Ð·Ð°Ñ Ð·Ð° ÑноÑÑ ÐºÐ¾ÑиÑниÑког имена и лозинке. Ронда можеÑе поÑÑавиÑи Ñе вÑедноÑÑи Ñ Ð´Ð¾Ð³Ð°ÑаÑÑ.
</p>
<p>
Ðажно Ñе да Ñе коÑиÑÑи колекÑиÑа обележÑа за додеÑиваÑе овиÑ
вÑедноÑÑи а не замена ÑÑÑингова Ñ ÑÑÑинг конекÑиÑе, ÑÐµÑ Ñако неÑе Ñ
ÑеÑи да Ñади.
</p>
<p class="read-more"><a href="#" class="button">ЧиÑÐ°Ñ Ð²Ð¸Ñе</a></p>
</article>
<br>
<div class="push"></div>
</main>