- Posts: 15
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Cambiar padding Bootswatch
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
3 years 2 months ago - 3 years 2 months ago #210883
by briankirsinger
Cambiar padding Bootswatch was created by briankirsinger
Muy buenas estimados.
Oculte el navbar pero ahora quedo el espacio en blanco de donde estaba el navbar, intento cambiar el padding en custom.css pero no sucede nada, queda igual. Segun el inspeccionar elemento body aun tiene padding-top: 90px
Puse esto en custom.css
body {
padding-top: 0 !important;
}
body .top-container {
margin-top: 20px;
}
Muchas gracias por su ayuda!
Oculte el navbar pero ahora quedo el espacio en blanco de donde estaba el navbar, intento cambiar el padding en custom.css pero no sucede nada, queda igual. Segun el inspeccionar elemento body aun tiene padding-top: 90px
Puse esto en custom.css
body {
padding-top: 0 !important;
}
body .top-container {
margin-top: 20px;
}
Muchas gracias por su ayuda!
Last edit: 3 years 2 months ago by briankirsinger.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 2 months ago #210902
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Cambiar padding Bootswatch
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: briankirsinger
The topic has been locked.
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
3 years 2 months ago #210927
by briankirsinger
Replied by briankirsinger on topic Cambiar padding Bootswatch
Muchas gracias, funcionó eliminando el navbar.
Otra pregunta si es posible, si no hago otro post.
Es posible hacer que la opción de un radio button sirva como boton de submit? Es decir, cuando mi cliente haga click en una opcion de una lista de radio buttons, este actué como un boton de submit? Intente con esto.
$(document).ready(function(){
$("#limesurvey input[type=radio]").click(function(){
$("#movenextbtn,#movesubmitbtn").click();
});
});
Pero no dio resultados.
Muy agradecido con su respuesta.
Otra pregunta si es posible, si no hago otro post.
Es posible hacer que la opción de un radio button sirva como boton de submit? Es decir, cuando mi cliente haga click en una opcion de una lista de radio buttons, este actué como un boton de submit? Intente con esto.
$(document).ready(function(){
$("#limesurvey input[type=radio]").click(function(){
$("#movenextbtn,#movesubmitbtn").click();
});
});
Pero no dio resultados.
Muy agradecido con su respuesta.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 2 months ago - 3 years 2 months ago #210942
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Cambiar padding Bootswatch
Su script esta para otra version.
Para 3.x.
Joffm
Para 3.x.
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Se quieres esconder el boton $('#ls-button-submit').hide(); $('#question{QID} input:radio[id^="answer"]').on('click', function(e) { $('#ls-button-submit').trigger('click'); }); }); </script>
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 2 months ago by Joffm.
The topic has been locked.
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
3 years 2 months ago #210987
by briankirsinger
Replied by briankirsinger on topic Cambiar padding Bootswatch
Buenos dias,
Copie y pegué el código indicado en custom.js pero aun no funciona, ¿Necesito cambiar otras cosas?
Copie y pegué el código indicado en custom.js pero aun no funciona, ¿Necesito cambiar otras cosas?
$(document).on('ready pjax:scriptcomplete',function(){
// Se quieres esconder el boton
$('#ls-button-submit').hide();
$('#question{QID} input:radio[id^="answer"]').on('click', function(e) {
$('#ls-button-submit').trigger('click');
});
});https://ibb.co/9cpjS0T
Attachments:
The topic has been locked.
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
3 years 2 months ago #210994
by briankirsinger
Replied by briankirsinger on topic Cambiar padding Bootswatch
Me aparece este error en la consola
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 2 months ago #211027
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Cambiar padding Bootswatch
No en "custom.js" en el código de la pregunta.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: briankirsinger
The topic has been locked.
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
3 years 2 months ago #211046
by briankirsinger
Replied by briankirsinger on topic Cambiar padding Bootswatch
Aqui? Estoy un poco perdido
Attachments:
The topic has been locked.
- briankirsinger
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
3 years 2 months ago #211048
by briankirsinger
Replied by briankirsinger on topic Cambiar padding Bootswatch
Listo, funcionando! Muchas gracias!
The topic has been locked.