Search This Blog

Thursday, October 16, 2014

Accordion menu with jQuery in slideToggle() method

Welcome to Designers Dairy blog here i have posted how to Up and Down the arrow On clicking


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<style type="text/css">
.refine-arrow-up
{
    background: url(refine-up.jpg) no-repeat 0 0;
    display:block;
    width:25px;
}
.refine-arrow-down  a
{
color:red;
}
.refine-arrow-up  a
{
color:orange;
}
 a:hover
{
color:green;
}
.refine-arrow-down
{
    background: url(refine-down.jpg) no-repeat 0 0;
    display:block;
    width:25px;
}
.red
{
 color:red;   
}
a
{

    color:#ccc;
    margin-left:30px;
}

</style>
<script type="text/javascript">
$(document).ready(function() {
  
    $("#refine-description").click(function()
    {
          if ($(this).hasClass('refine-arrow-up'))
        {
             $(this).removeClass('refine-arrow-up');
             $(this).addClass('refine-arrow-down');
        }

       else if($(this).hasClass('refine-arrow-down'))
       {
           $(this).removeClass('refine-arrow-down');
           $(this).addClass('refine-arrow-up');
       }
 });
     
});

</script>

</head>

<body>
  <div id="refine-description" class="refine-arrow-down">
                  <a href="#"> Refine </a>
                </div>
</body>
</html>
 

Tuesday, October 7, 2014

how to use custom Tamil fonts on your website with css

Welcome to designers dairy blog  here i have post the article  you can use custom tamil fonts on 
your website.


Download LM-  TM Bharani and upload in http://www.font2web.com/ and  it will generate the

Eot ,Woff, Ttf  and Svg Formats


Convert Font (.ttf or .otf):

http://www.font2web.com/

<style type="text/css">
@font-face {
    font-family: 'LM-  TM Bharani ";
    src: url('fonts/tccb.eot');
    src: url('fonts/tccb.eot?#iefix') format('embedded-opentype'),
         url('fonts/tccb.woff') format('woff'),
         url('fonts/tccb.ttf') format('truetype'),
         url('fonts/tccb.svg#tccb') format('svg');
    font-weight: normal;
    font-style: normal;
}
</style>

Validating to select in sequencial order using angular

    < input type = "checkbox" (change) = "handleSelectTaskItem($event, taskItem)" [checked] = " taskItem . i...